| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "base/callback.h" | 5 #include "base/callback.h" |
| 6 #include "base/mac/foundation_util.h" | 6 #include "base/mac/foundation_util.h" |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 332 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
| 333 [self tapBackArrow]; | 333 [self tapBackArrow]; |
| 334 | 334 |
| 335 [self tapBackArrow]; | 335 [self tapBackArrow]; |
| 336 [self tapDone]; | 336 [self tapDone]; |
| 337 [self clearPasswordStore]; | 337 [self clearPasswordStore]; |
| 338 } | 338 } |
| 339 | 339 |
| 340 // Checks that attempts to copy a password provide appropriate feedback, | 340 // Checks that attempts to copy a password provide appropriate feedback, |
| 341 // both when reauthentication succeeds and when it fails. | 341 // both when reauthentication succeeds and when it fails. |
| 342 - (void)testCopyPasswordToast { | 342 // TODO(crbug.com/718043): Re-enable test. |
| 343 - (void)DISABLED_testCopyPasswordToast { |
| 343 [self scopedEnablePasswordManagementAndViewingUI]; | 344 [self scopedEnablePasswordManagementAndViewingUI]; |
| 344 | 345 |
| 345 // Saving a form is needed for using the "password details" view. | 346 // Saving a form is needed for using the "password details" view. |
| 346 [self saveExamplePasswordForm]; | 347 [self saveExamplePasswordForm]; |
| 347 | 348 |
| 348 [self openPasswordSettings]; | 349 [self openPasswordSettings]; |
| 349 | 350 |
| 350 [[EarlGrey selectElementWithMatcher:Entry(@"https://example.com, user")] | 351 [[EarlGrey selectElementWithMatcher:Entry(@"https://example.com, user")] |
| 351 performAction:grey_tap()]; | 352 performAction:grey_tap()]; |
| 352 | 353 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 [[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(snackbarLabel)] | 440 [[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(snackbarLabel)] |
| 440 assertWithMatcher:grey_notNil()]; | 441 assertWithMatcher:grey_notNil()]; |
| 441 | 442 |
| 442 [self tapBackArrow]; | 443 [self tapBackArrow]; |
| 443 [self tapBackArrow]; | 444 [self tapBackArrow]; |
| 444 [self tapDone]; | 445 [self tapDone]; |
| 445 [self clearPasswordStore]; | 446 [self clearPasswordStore]; |
| 446 } | 447 } |
| 447 | 448 |
| 448 @end | 449 @end |
| OLD | NEW |