Commit 7e806e65 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS] Increase wait time

This is an attempt to reduce the flakiness of this test.

Fixes: 1103501
Change-Id: Ib160dd4941493d82eb793b63a0339feaa21dd69b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303440Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789496}
parent da12cd42
......@@ -31,6 +31,7 @@ GREY_STUB_CLASS_IN_APP_MAIN_QUEUE(KeyboardObserverHelperAppInterface);
#endif // defined(CHROME_EARL_GREY_2)
using base::TimeDelta;
using base::test::ios::kWaitForUIElementTimeout;
using base::test::ios::SpinRunLoopWithMinDelay;
using base::test::ios::WaitUntilConditionOrTimeout;
using chrome_test_util::TapWebElementWithId;
......@@ -105,7 +106,7 @@ void TapOnWebElementWithID(const std::string& elementID) {
// Brings up the keyboard by tapping on one of the form's field.
TapOnWebElementWithID(kFormElementID1);
SpinRunLoopWithMinDelay(TimeDelta::FromSeconds(1));
SpinRunLoopWithMinDelay(TimeDelta::FromSeconds(kWaitForUIElementTimeout));
// Verifies that the taped element is focused.
AssertElementIsFocused(kFormElementID1);
......@@ -117,7 +118,7 @@ void TapOnWebElementWithID(const std::string& elementID) {
// Tap the "Submit" button, and let the run loop spin.
TapOnWebElementWithID(kFormElementSubmit);
SpinRunLoopWithMinDelay(TimeDelta::FromSeconds(1));
SpinRunLoopWithMinDelay(TimeDelta::FromSeconds(kWaitForUIElementTimeout));
// Verify the state changed.
GREYAssertFalse(observer.keyboardState.isVisible,
......
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