Skip to content

Instantly share code, notes, and snippets.

@tophyr
Created September 5, 2012 01:13
Show Gist options
  • Save tophyr/3628791 to your computer and use it in GitHub Desktop.
Save tophyr/3628791 to your computer and use it in GitHub Desktop.
+ (NSArray *)stepsToShowCompanyTitle{
NSString *companyTitle = [NSString stringWithFormat:@"%@\n%@", TEST_USER_TITLE, TEST_USER_COMPANY];
NSMutableArray *steps = [NSMutableArray array];
[steps addObject:[KIFTestStep stepToToggleSwitchOn:SHOW_COMPANY_SWITCH_LABEL]];
[steps addObject:[KIFTestStep stepToWaitForAbsenceOfViewWithAccessibilityLabel:USER_COMPANY_TEXT value:TEST_USER_EMAIL traits:UIAccessibilityTraitStaticText]];
[steps addObject:[KIFTestStep stepToWaitForViewWithAccessibilityLabel:USER_COMPANY_TEXT value:companyTitle traits:UIAccessibilityTraitStaticText]];
return steps;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment