Commit b6398ef0 authored by dominikg@chromium.org's avatar dominikg@chromium.org

Telemetry: Fix inbox_app.html?slide_drawer of key_silk_cases.

This page toggles the drawer as part of its navigate steps. It then waits until
the navigation drawer is active before continuing. The navigation drawer is
active, however, as soon as it starts moving, so it doesn't mean that the drawer
is in its final position.
This CL adds an additional check to make sure that the drawer is actually fully
out before continuing.

BUG=

Review URL: https://codereview.chromium.org/418133008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285608 0039d316-1c4b-4281-b951-d872f2087c98
parent 64c58154
...@@ -363,8 +363,10 @@ class Page19(KeySilkCasesPage): ...@@ -363,8 +363,10 @@ class Page19(KeySilkCasesPage):
interaction.End() interaction.End()
interaction = action_runner.BeginInteraction('Wait', is_smooth=True) interaction = action_runner.BeginInteraction('Wait', is_smooth=True)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition('''
'document.getElementById("nav-drawer").active') document.getElementById("nav-drawer").active &&
document.getElementById("nav-drawer").children[0]
.getBoundingClientRect().left == 0''')
interaction.End() interaction.End()
def RunNavigateSteps(self, action_runner): def RunNavigateSteps(self, action_runner):
......
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