Skip to content

Instantly share code, notes, and snippets.

@ecgreb
Last active December 17, 2015 03:19
Show Gist options
  • Save ecgreb/5542133 to your computer and use it in GitHub Desktop.
Save ecgreb/5542133 to your computer and use it in GitHub Desktop.
@implementation KIFTestScenario (HelloTDDAdditions)
+ (id)scenarioToDisplayGreeting {
KIFTestScenario *scenario =
[KIFTestScenario scenarioWithDescription:
@"Test greeting with name."];
[scenario addStep:
[KIFTestStep stepToEnterText:
@"Chuck Norris"intoViewWithAccessibilityLabel:@"Name"]];
[scenario addStep:
[KIFTestStep stepToTapViewWithAccessibilityLabel:
@"Say Hello"]];
[scenario addStep:
[KIFTestStep stepToVerifyGreeting:
@"Hello, Chuck Norris!"]];
return scenario;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment