big-medium teams with clear requirements and relaxed deadlines
small/one man teams with green product and need for fast pace
/**
* When I tap the "say hello" button, I see a greetings alert.
*/
testSayHello() {
let app = XCUIApplication()
app.buttons["say hello"].tap()
app.alerts["Hello"].collectionViews.buttons["Dismiss"].tap()
}
/**
* When I tap the "show elementes" button, I see the list with
* the elements of the periodic table.
*/
testShowElements() {
let app = XCUIApplication()
app.buttons["show elements"].tap()
XCTAssertEqual(app.tables.count, 1)
let table = app.tables.elementAtIndex(0)
let periodicTableElementsCount: UInt = 118
XCTAssertEqual(table.cells.count, periodicTableElementsCount)
}
describe(@"Main screen", ^{
context(@"when I tap the 'say hello' button", ^{
before(^{
[tester tapViewWithAccessibilityLabel:kSayHello];
});
it(@"I see a greetings alert", ^{
[tester waitForViewWithAccessibilityLabel:kHelloAlertTitle];
[tester waitForViewWithAccessibilityLabel:kHelloAlertMessage];
[tester waitForViewWithAccessibilityLabel:kHelloAlertButton];
});
});
});