| Index: ios/chrome/browser/ui/settings/settings_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/settings/settings_egtest.mm b/ios/chrome/browser/ui/settings/settings_egtest.mm
|
| index f2f0916689c7ab78b016b65a696c63d5befa188d..cdab355450c6cc485a42af301fd31d888e96fed9 100644
|
| --- a/ios/chrome/browser/ui/settings/settings_egtest.mm
|
| +++ b/ios/chrome/browser/ui/settings/settings_egtest.mm
|
| @@ -131,6 +131,10 @@
|
| id<GREYMatcher> AutofillButton() {
|
| return ButtonWithAccessibilityLabelId(IDS_IOS_AUTOFILL);
|
| }
|
| +// Matcher for the Google Apps cell on the main Settings screen.
|
| +id<GREYMatcher> GoogleAppsButton() {
|
| + return ButtonWithAccessibilityLabelId(IDS_IOS_GOOGLE_APPS_SM_SETTINGS);
|
| +}
|
| // Matcher for the Google Chrome cell on the main Settings screen.
|
| id<GREYMatcher> GoogleChromeButton() {
|
| return ButtonWithAccessibilityLabelId(IDS_IOS_PRODUCT_NAME);
|
| @@ -906,6 +910,17 @@
|
| [self closeSubSettingsMenu];
|
| }
|
|
|
| +// Verifies the UI elements are accessible on the Google Apps page.
|
| +- (void)testAccessibilityOnGoogleApps {
|
| + [ChromeEarlGreyUI openToolsMenu];
|
| + [[EarlGrey selectElementWithMatcher:SettingsButton()]
|
| + performAction:grey_tap()];
|
| + [[EarlGrey selectElementWithMatcher:GoogleAppsButton()]
|
| + performAction:grey_tap()];
|
| + chrome_test_util::VerifyAccessibilityForCurrentScreen();
|
| + [self closeSubSettingsMenu];
|
| +}
|
| +
|
| // Verifies the UI elements are accessible on the About Chrome page.
|
| - (void)testAccessibilityOnGoogleChrome {
|
| [self openSubSettingMenu:GoogleChromeButton()];
|
|
|