Commit 0c0fb930 authored by Ned Nguyen's avatar Ned Nguyen Committed by Commit Bot

Increase timeout when waiting for page to be updated in browse:tools:maps test

Bug: 806057
Change-Id: Ida24c4484fa417cc413e512a845103e5bcef7d2d
Reviewed-on: https://chromium-review.googlesource.com/891687Reviewed-by: default avatarJuan Antonio Navarro Pérez <perezju@chromium.org>
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Cr-Commit-Position: refs/heads/master@{#532848}
parent 914c00e5
...@@ -706,7 +706,7 @@ class GoogleMapsStory(_BrowsingStory): ...@@ -706,7 +706,7 @@ class GoogleMapsStory(_BrowsingStory):
action_runner.ClickElement(selector=self._MAPS_ZOOM_IN_SELECTOR) action_runner.ClickElement(selector=self._MAPS_ZOOM_IN_SELECTOR)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition(
self._CHECK_RESTAURANTS_UPDATED, self._CHECK_RESTAURANTS_UPDATED,
old_restaurant=prev_restaurant_hash) old_restaurant=prev_restaurant_hash, timeout=90)
# This wait is required to fetch the data for all the tiles in the map. # This wait is required to fetch the data for all the tiles in the map.
action_runner.Wait(1) action_runner.Wait(1)
...@@ -715,7 +715,7 @@ class GoogleMapsStory(_BrowsingStory): ...@@ -715,7 +715,7 @@ class GoogleMapsStory(_BrowsingStory):
action_runner.ClickElement(selector=self._MAPS_ZOOM_IN_SELECTOR) action_runner.ClickElement(selector=self._MAPS_ZOOM_IN_SELECTOR)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition(
self._CHECK_RESTAURANTS_UPDATED, self._CHECK_RESTAURANTS_UPDATED,
old_restaurant=prev_restaurant_hash) old_restaurant=prev_restaurant_hash, timeout=90)
# This wait is required to fetch the data for all the tiles in the map. # This wait is required to fetch the data for all the tiles in the map.
action_runner.Wait(1) action_runner.Wait(1)
...@@ -730,7 +730,7 @@ class GoogleMapsStory(_BrowsingStory): ...@@ -730,7 +730,7 @@ class GoogleMapsStory(_BrowsingStory):
repeat_count=2, speed=500, timeout=120, repeat_delay_ms=2000) repeat_count=2, speed=500, timeout=120, repeat_delay_ms=2000)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition(
self._CHECK_RESTAURANTS_UPDATED, self._CHECK_RESTAURANTS_UPDATED,
old_restaurant=prev_restaurant_hash) old_restaurant=prev_restaurant_hash, timeout=90)
prev_restaurant_hash = action_runner.EvaluateJavaScript( prev_restaurant_hash = action_runner.EvaluateJavaScript(
self._GET_RESTAURANT_RESPONSE_HASH) self._GET_RESTAURANT_RESPONSE_HASH)
...@@ -739,7 +739,7 @@ class GoogleMapsStory(_BrowsingStory): ...@@ -739,7 +739,7 @@ class GoogleMapsStory(_BrowsingStory):
repeat_count=2, speed=500, timeout=120, repeat_delay_ms=2000) repeat_count=2, speed=500, timeout=120, repeat_delay_ms=2000)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition(
self._CHECK_RESTAURANTS_UPDATED, self._CHECK_RESTAURANTS_UPDATED,
old_restaurant=prev_restaurant_hash) old_restaurant=prev_restaurant_hash, timeout=90)
# To make the recording more realistic. # To make the recording more realistic.
action_runner.Wait(1) action_runner.Wait(1)
......
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