| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // TODO(crbug.com/718023): Re-enable test. | 219 // TODO(crbug.com/718023): Re-enable test. |
| 220 - (void)testSignInAndTapSettingsLink_DISABLED { | 220 - (void)DISABLED_testSignInAndTapSettingsLink { |
| 221 ChromeIdentity* identity = GetFakeIdentity(); | 221 ChromeIdentity* identity = GetFakeIdentity(); |
| 222 ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity( | 222 ios::FakeChromeIdentityService::GetInstanceFromChromeProvider()->AddIdentity( |
| 223 identity); | 223 identity); |
| 224 | 224 |
| 225 // Launch First Run and accept tems of services. | 225 // Launch First Run and accept tems of services. |
| 226 [chrome_test_util::GetMainController() showFirstRunUI]; | 226 [chrome_test_util::GetMainController() showFirstRunUI]; |
| 227 [[EarlGrey selectElementWithMatcher:FirstRunOptInAcceptButton()] | 227 [[EarlGrey selectElementWithMatcher:FirstRunOptInAcceptButton()] |
| 228 performAction:grey_tap()]; | 228 performAction:grey_tap()]; |
| 229 | 229 |
| 230 // Sign In |identity|. | 230 // Sign In |identity|. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 246 | 246 |
| 247 // 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. |
| 248 [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()] | 248 [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()] |
| 249 performAction:grey_tap()]; | 249 performAction:grey_tap()]; |
| 250 AssertAuthenticatedIdentityInActiveProfile(identity); | 250 AssertAuthenticatedIdentityInActiveProfile(identity); |
| 251 GREYAssertTrue(sync_service->HasFinishedInitialSetup(), | 251 GREYAssertTrue(sync_service->HasFinishedInitialSetup(), |
| 252 @"Sync should have finished its original setup"); | 252 @"Sync should have finished its original setup"); |
| 253 } | 253 } |
| 254 | 254 |
| 255 @end | 255 @end |
| OLD | NEW |