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 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "components/metrics/metrics_pref_names.h" | 9 #include "components/metrics/metrics_pref_names.h" |
10 #include "components/metrics/metrics_reporting_default_state.h" | 10 #include "components/metrics/metrics_reporting_default_state.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 [[EarlGrey selectElementWithMatcher:UndoAccountConsistencyButton()] | 209 [[EarlGrey selectElementWithMatcher:UndoAccountConsistencyButton()] |
210 performAction:grey_tap()]; | 210 performAction:grey_tap()]; |
211 [[EarlGrey selectElementWithMatcher:FirstRunAccountConsistencySkipButton()] | 211 [[EarlGrey selectElementWithMatcher:FirstRunAccountConsistencySkipButton()] |
212 performAction:grey_tap()]; | 212 performAction:grey_tap()]; |
213 | 213 |
214 // |identity| shouldn't be signed in. | 214 // |identity| shouldn't be signed in. |
215 AssertAuthenticatedIdentityInActiveProfile(nil); | 215 AssertAuthenticatedIdentityInActiveProfile(nil); |
216 } | 216 } |
217 | 217 |
218 // Signs in to an account and then taps the Advanced link to go to settings. | 218 // Signs in to an account and then taps the Advanced link to go to settings. |
219 - (void)testSignInAndTapSettingsLink { | 219 // TODO(crbug.com/718023): Re-enable test. |
| 220 - (void)testSignInAndTapSettingsLink_DISABLED { |
220 ChromeIdentity* identity = GetFakeIdentity(); | 221 ChromeIdentity* identity = GetFakeIdentity(); |
221 ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity( | 222 ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity( |
222 identity); | 223 identity); |
223 | 224 |
224 // Launch First Run and accept tems of services. | 225 // Launch First Run and accept tems of services. |
225 [chrome_test_util::GetMainController() showFirstRunUI]; | 226 [chrome_test_util::GetMainController() showFirstRunUI]; |
226 [[EarlGrey selectElementWithMatcher:FirstRunOptInAcceptButton()] | 227 [[EarlGrey selectElementWithMatcher:FirstRunOptInAcceptButton()] |
227 performAction:grey_tap()]; | 228 performAction:grey_tap()]; |
228 | 229 |
229 // Sign In |identity|. | 230 // Sign In |identity|. |
(...skipping 15 matching lines...) Expand all Loading... |
245 | 246 |
246 // Close Settings, user is still signed in and sync is now starting. | 247 // Close Settings, user is still signed in and sync is now starting. |
247 [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()] | 248 [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()] |
248 performAction:grey_tap()]; | 249 performAction:grey_tap()]; |
249 AssertAuthenticatedIdentityInActiveProfile(identity); | 250 AssertAuthenticatedIdentityInActiveProfile(identity); |
250 GREYAssertTrue(sync_service->HasFinishedInitialSetup(), | 251 GREYAssertTrue(sync_service->HasFinishedInitialSetup(), |
251 @"Sync should have finished its original setup"); | 252 @"Sync should have finished its original setup"); |
252 } | 253 } |
253 | 254 |
254 @end | 255 @end |
OLD | NEW |