Commit aada2383 authored by Yi Su's avatar Yi Su Committed by Commit Bot

Fix testSearchPasswords failure on small screens.

After migrated to ChromeTableView, PasswordsTableViewController
(use to be SavePasswordsCollectionViewController) displays less items in
one screen, and testSearchPasswords has to scroll down to find all items
which will hide the search bar. Then it will fail when trying to tap on
search bar. This CL makes it scroll to top first and then tap the search
bar.

Change-Id: I08327f99043b26b426a0f41fdb32e578e93c3b74
Reviewed-on: https://chromium-review.googlesource.com/c/1373827Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Yi Su <mrsuyi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615977}
parent cf2439b9
...@@ -1601,6 +1601,9 @@ PasswordForm CreateSampleFormWithIndex(int index) { ...@@ -1601,6 +1601,9 @@ PasswordForm CreateSampleFormWithIndex(int index) {
[GetInteractionForPasswordEntry(@"exclude2.com") [GetInteractionForPasswordEntry(@"exclude2.com")
assertWithMatcher:grey_notNil()]; assertWithMatcher:grey_notNil()];
[[EarlGrey
selectElementWithMatcher:grey_accessibilityID(kPasswordsTableViewId)]
performAction:grey_scrollToContentEdge(kGREYContentEdgeTop)];
[[EarlGrey selectElementWithMatcher:SearchTextField()] [[EarlGrey selectElementWithMatcher:SearchTextField()]
performAction:grey_typeText(@"2")]; performAction:grey_typeText(@"2")];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment