Commit 76ab3cd7 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Wait more time after performing actions to deflaky testActionsMouseDrag

Right now the chromedriver test testActionsMouseDrag is still flaky
after we wait 1 second for the page layout loading, we will wait 1
second after performing the actions to check what has been changed on
the page to avoid flakiness.

Bug: 1033382
Change-Id: Idc9d88326f253723ad619ae46fb6b7b014ecafe5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051576Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740835}
parent 6a152ab1
...@@ -901,6 +901,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer): ...@@ -901,6 +901,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
'id': 'pointer1'}]}) 'id': 'pointer1'}]})
time.sleep(1) time.sleep(1)
self._driver.PerformActions(actions) self._driver.PerformActions(actions)
time.sleep(1)
rect = target.GetRect() rect = target.GetRect()
self.assertEquals(150, rect['x']) self.assertEquals(150, rect['x'])
self.assertEquals(200, rect['y']) self.assertEquals(200, rect['y'])
...@@ -919,6 +920,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer): ...@@ -919,6 +920,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
'id': 'pointer1'}]}) 'id': 'pointer1'}]})
time.sleep(1) time.sleep(1)
self._driver.PerformActions(actions) self._driver.PerformActions(actions)
time.sleep(1)
rect = target.GetRect() rect = target.GetRect()
self.assertEquals(180, rect['x']) self.assertEquals(180, rect['x'])
self.assertEquals(240, rect['y']) self.assertEquals(240, rect['y'])
...@@ -939,6 +941,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer): ...@@ -939,6 +941,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
'id': 'pointer1'}]}) 'id': 'pointer1'}]})
time.sleep(1) time.sleep(1)
self._driver.PerformActions(actions) self._driver.PerformActions(actions)
time.sleep(1)
rect = target.GetRect() rect = target.GetRect()
self.assertEquals(180, rect['x']) self.assertEquals(180, rect['x'])
self.assertEquals(240, rect['y']) self.assertEquals(240, rect['y'])
......
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