Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e18c997
commit bdbc779
Showing
17 changed files
with
197 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
MIT Mobile Tests/AccessibilityConstants/MITAccessibilityConstants.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/* | ||
When declaring identifiers, these will not be accessed by end users. When declaring labels, these will be used by the accessibility system and should remain human readable keys. | ||
*/ | ||
|
||
#pragma mark - Navigation | ||
|
||
extern NSString * const MITAccessibilityMainNavigationButtonLabel; | ||
|
||
extern NSString * const MITAccessibilityModuleNews; | ||
extern NSString * const MITAccessibilityModuleShuttles; | ||
extern NSString * const MITAccessibilityModuleMap; | ||
extern NSString * const MITAccessibilityModuleEvents; | ||
extern NSString * const MITAccessibilityModulePeopleDirectory; | ||
extern NSString * const MITAccessibilityModuleTours; | ||
extern NSString * const MITAccessibilityModuleEmergency; | ||
extern NSString * const MITAccessibilityModuleLibraries; | ||
extern NSString * const MITAccessibilityModuleDining; | ||
extern NSString * const MITAccessibilityModuleBuildingServices; | ||
extern NSString * const MITAccessibilityModuleScanner; | ||
|
||
extern NSString * const MITAccessibilityNavigationLinks; | ||
extern NSString * const MITAccessibilityNavigationSettings; | ||
extern NSString * const MITAccessibilityNavigationAbout; | ||
|
||
#pragma mark - Libraries | ||
|
||
// Home Screen | ||
extern NSString * const MITAccessibilityLibrariesHomeSearchBarLabel; | ||
|
||
extern NSString * const MITAccessibilityLibrariesHomeCellYourAccount; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellLocations; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellAskUs; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellTellUs; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellExternalLinkResearch; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellExternalLinkNews; | ||
extern NSString * const MITAccessibilityLibrariesHomeCellExternalLinkWebsite; | ||
|
||
// My Account | ||
extern NSString * const MITAccessibilityLibrariesMyAccountLoansTableViewIdentifier; | ||
|
||
// Search | ||
extern NSString * const MITAccessibilityLibrariesSearchResultsTableViewIdentifier; | ||
extern NSString * const MITAccessibilityLibrariesSearchResultDetailCellLabelCitations; | ||
|
||
// Navigation | ||
extern NSString * const MITAccessibilityLibrariesBackButtonLabelLoans; | ||
extern NSString * const MITAccessibilityLibrariesBackButtonLabelLibraries; | ||
|
||
#pragma mark - Touchstone Login | ||
|
||
extern NSString * const MITAccessibilityTouchstoneLoginFieldUsernameEmail; | ||
extern NSString * const MITAccessibilityTouchstoneLoginFieldPassword; | ||
extern NSString * const MITAccessibilityTouchstoneLoginButtonLabel; |
52 changes: 52 additions & 0 deletions
52
MIT Mobile Tests/AccessibilityConstants/MITAccessibilityConstants.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#import "MITAccessibilityConstants.h" | ||
|
||
#pragma mark - Navigation | ||
|
||
NSString * const MITAccessibilityMainNavigationButtonLabel = @"Main Navigation Button"; | ||
|
||
// Corresponds to the visible module name on the open navigation drawer | ||
NSString * const MITAccessibilityModuleNews = @"News"; | ||
NSString * const MITAccessibilityModuleShuttles = @"Shuttles"; | ||
NSString * const MITAccessibilityModuleMap = @"Map"; | ||
NSString * const MITAccessibilityModuleEvents = @"Events"; | ||
NSString * const MITAccessibilityModulePeopleDirectory = @"People Directory"; | ||
NSString * const MITAccessibilityModuleTours = @"Tours"; | ||
NSString * const MITAccessibilityModuleEmergency = @"Emergency"; | ||
NSString * const MITAccessibilityModuleLibraries = @"Libraries"; | ||
NSString * const MITAccessibilityModuleDining = @"Dining"; | ||
NSString * const MITAccessibilityModuleBuildingServices = @"Building Services"; | ||
NSString * const MITAccessibilityModuleScanner= @"Scanner"; | ||
|
||
NSString * const MITAccessibilityNavigationLinks = @"Links"; | ||
NSString * const MITAccessibilityNavigationSettings = @"Settings"; | ||
NSString * const MITAccessibilityNavigationAbout = @"About"; | ||
|
||
#pragma mark - Libraries | ||
// Home Screen | ||
NSString * const MITAccessibilityLibrariesHomeSearchBarLabel = @"Libraries Home Search Bar"; | ||
|
||
// Corresponds to the visible text in the cells on the home screen | ||
NSString * const MITAccessibilityLibrariesHomeCellYourAccount = @"Your Account"; | ||
NSString * const MITAccessibilityLibrariesHomeCellLocations = @"Locations"; | ||
NSString * const MITAccessibilityLibrariesHomeCellAskUs = @"Ask Us!"; | ||
NSString * const MITAccessibilityLibrariesHomeCellTellUs = @"Tell Us!"; | ||
NSString * const MITAccessibilityLibrariesHomeCellExternalLinkResearch = @"Mobile tools for library research"; | ||
NSString * const MITAccessibilityLibrariesHomeCellExternalLinkNews = @"MIT Libraries News"; | ||
NSString * const MITAccessibilityLibrariesHomeCellExternalLinkWebsite = @"Full MIT Libraries website"; | ||
|
||
// My Account | ||
NSString * const MITAccessibilityLibrariesMyAccountLoansTableViewIdentifier = @"MITAccessibilityLibrariesMyAccountLoansTableViewIdentifier"; | ||
|
||
// Search | ||
NSString * const MITAccessibilityLibrariesSearchResultsTableViewIdentifier = @"MITAccessibilityLibrariesSearchResultsTableViewIdentifier"; | ||
NSString * const MITAccessibilityLibrariesSearchResultDetailCellLabelCitations = @"Citations"; | ||
|
||
// Navigation | ||
NSString * const MITAccessibilityLibrariesBackButtonLabelLoans = @"Loans"; | ||
NSString * const MITAccessibilityLibrariesBackButtonLabelLibraries = @"Libraries"; | ||
|
||
#pragma mark - Touchstone Login | ||
|
||
NSString * const MITAccessibilityTouchstoneLoginFieldUsernameEmail = @"Username or Email Login Field"; | ||
NSString * const MITAccessibilityTouchstoneLoginFieldPassword = @"Password Login Field"; | ||
NSString * const MITAccessibilityTouchstoneLoginButtonLabel = @"Log In Button"; |
8 changes: 0 additions & 8 deletions
8
MIT Mobile Tests/KIF/ActorAdditions/KIFUITestActor+Navigation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 1 addition & 12 deletions
13
MIT Mobile Tests/KIF/ActorAdditions/KIFUITestActor+Navigation.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
// | ||
// KIFUITestActor+Navigation.m | ||
// MIT Mobile | ||
// | ||
// Created by Logan Wright on 2/3/15. | ||
// | ||
// | ||
|
||
#import "KIFUITestActor+Navigation.h" | ||
|
||
@implementation KIFUITestActor (Navigation) | ||
|
||
- (void)navigateToModuleWithName:(NSString *)name { | ||
[self tapViewWithAccessibilityLabel:@"Main Navigation Button"]; | ||
[self tapViewWithAccessibilityLabel:MITAccessibilityMainNavigationButtonLabel]; | ||
[self tapViewWithAccessibilityLabel:name]; | ||
} | ||
|
||
- (void)blah { | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#import "KIFUITestActor.h" | ||
|
||
@interface KIFUITestActor (Util) | ||
- (void)pressReturnKeyOnCurrentFirstResponder; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import "KIFUITestActor+Util.h" | ||
|
||
@implementation KIFUITestActor (Util) | ||
- (void)pressReturnKeyOnCurrentFirstResponder { | ||
[self enterTextIntoCurrentFirstResponder:@"\n"]; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef MIT_Mobile_MITTesting_pch | ||
#define MIT_Mobile_MITTesting_pch | ||
|
||
#import "MITAccessibilityConstants.h" | ||
#import "KIFUITestActor+Navigation.h" | ||
#import "KIFUITestActor+Util.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.