OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
6 #import <XCTest/XCTest.h> | 6 #import <XCTest/XCTest.h> |
7 | 7 |
8 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" | 8 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" |
9 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" | 9 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" |
10 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" | 10 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Assert title and accessibility. | 51 // Assert title and accessibility. |
52 [[EarlGrey | 52 [[EarlGrey |
53 selectElementWithMatcher:grey_accessibilityID( | 53 selectElementWithMatcher:grey_accessibilityID( |
54 @"translate_settings_view_controller")] | 54 @"translate_settings_view_controller")] |
55 assertWithMatcher:grey_notNil()]; | 55 assertWithMatcher:grey_notNil()]; |
56 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 56 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
57 | 57 |
58 // Close settings. | 58 // Close settings. |
59 [[EarlGrey | 59 [[EarlGrey |
60 selectElementWithMatcher:grey_allOf( | 60 selectElementWithMatcher:grey_allOf( |
61 grey_accessibilityID(@"back_bar_button"), | 61 grey_accessibilityID(@"ic_arrow_back"), |
62 grey_accessibilityTrait( | 62 grey_accessibilityTrait( |
63 UIAccessibilityTraitButton), | 63 UIAccessibilityTraitButton), |
64 nil)] performAction:grey_tap()]; | 64 nil)] performAction:grey_tap()]; |
65 [[EarlGrey | 65 [[EarlGrey |
66 selectElementWithMatcher:grey_allOf( | 66 selectElementWithMatcher:grey_allOf( |
67 grey_accessibilityID(@"back_bar_button"), | 67 grey_accessibilityID(@"ic_arrow_back"), |
68 grey_accessibilityTrait( | 68 grey_accessibilityTrait( |
69 UIAccessibilityTraitButton), | 69 UIAccessibilityTraitButton), |
70 nil)] performAction:grey_tap()]; | 70 nil)] performAction:grey_tap()]; |
71 [[EarlGrey | 71 [[EarlGrey |
72 selectElementWithMatcher:chrome_test_util::buttonWithAccessibilityLabelId( | 72 selectElementWithMatcher:chrome_test_util::buttonWithAccessibilityLabelId( |
73 IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)] | 73 IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)] |
74 performAction:grey_tap()]; | 74 performAction:grey_tap()]; |
75 } | 75 } |
76 | 76 |
77 @end | 77 @end |
OLD | NEW |