Add accessibility id for automation purpose.

- Added accessibility ids to some objects on authentication views for UI automation purpose
This commit is contained in:
jeangb
2017-01-11 15:25:08 +01:00
parent cc04dfac76
commit 8eb31e3680
4 changed files with 61 additions and 6 deletions
@@ -875,6 +875,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
[signOutCell.mxkButton removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[signOutCell.mxkButton addTarget:self action:@selector(onSignout:) forControlEvents:UIControlEventTouchUpInside];
signOutCell.mxkButton.accessibilityIdentifier=@"SettingsVCSignOutButton";
cell = signOutCell;
}
@@ -1243,6 +1244,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
[markAllBtnCell.mxkButton removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[markAllBtnCell.mxkButton addTarget:self action:@selector(markAllAsRead:) forControlEvents:UIControlEventTouchUpInside];
markAllBtnCell.mxkButton.accessibilityIdentifier = nil;
cell = markAllBtnCell;
}
@@ -1262,6 +1264,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
[clearCacheBtnCell.mxkButton removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[clearCacheBtnCell.mxkButton addTarget:self action:@selector(clearCache:) forControlEvents:UIControlEventTouchUpInside];
clearCacheBtnCell.mxkButton.accessibilityIdentifier = nil;
cell = clearCacheBtnCell;
}