Commit dbf0f2f5 authored by Kuo-Hsin Yang's avatar Kuo-Hsin Yang Committed by Commit Bot

Skip login flow when replaying top_real_world_desktop pages

**SHERIFFS** this test only CL may cause regression but it's expected.

Bug: chromium:862077
Bug: chromium:873081
Change-Id: Ia8c338b6e87fec576f3b5573ecfd1c2d824f2836
Reviewed-on: https://chromium-review.googlesource.com/1184733Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: default avatarJuan Antonio Navarro Pérez <perezju@chromium.org>
Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Vovo Yang <vovoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585371}
parent 47afbe8e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
from telemetry.page import shared_page_state from telemetry.page import shared_page_state
from telemetry.util import wpr_modes
from page_sets.login_helpers import google_login from page_sets.login_helpers import google_login
from page_sets.login_helpers import linkedin_login from page_sets.login_helpers import linkedin_login
...@@ -210,6 +211,7 @@ class Linkedin2018Page(TopRealWorldDesktopPage): ...@@ -210,6 +211,7 @@ class Linkedin2018Page(TopRealWorldDesktopPage):
extra_browser_args=extra_browser_args) extra_browser_args=extra_browser_args)
def RunNavigateSteps(self, action_runner): def RunNavigateSteps(self, action_runner):
if self.wpr_mode != wpr_modes.WPR_REPLAY:
linkedin_login.LoginDesktopAccount(action_runner, 'linkedin') linkedin_login.LoginDesktopAccount(action_runner, 'linkedin')
super(Linkedin2018Page, self).RunNavigateSteps(action_runner) super(Linkedin2018Page, self).RunNavigateSteps(action_runner)
...@@ -324,6 +326,7 @@ class Gmail2018SmoothPage(TopRealWorldDesktopPage): ...@@ -324,6 +326,7 @@ class Gmail2018SmoothPage(TopRealWorldDesktopPage):
URL = 'https://mail.google.com/mail/' URL = 'https://mail.google.com/mail/'
def RunNavigateSteps(self, action_runner): def RunNavigateSteps(self, action_runner):
if self.wpr_mode != wpr_modes.WPR_REPLAY:
google_login.NewLoginGoogleAccount(action_runner, 'googletest') google_login.NewLoginGoogleAccount(action_runner, 'googletest')
super(Gmail2018SmoothPage, self).RunNavigateSteps(action_runner) super(Gmail2018SmoothPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForJavaScriptCondition( action_runner.WaitForJavaScriptCondition(
...@@ -349,6 +352,7 @@ class GoogleCalendar2018SmoothPage(TopRealWorldDesktopPage): ...@@ -349,6 +352,7 @@ class GoogleCalendar2018SmoothPage(TopRealWorldDesktopPage):
URL='https://www.google.com/calendar/' URL='https://www.google.com/calendar/'
def RunNavigateSteps(self, action_runner): def RunNavigateSteps(self, action_runner):
if self.wpr_mode != wpr_modes.WPR_REPLAY:
google_login.NewLoginGoogleAccount(action_runner, 'googletest') google_login.NewLoginGoogleAccount(action_runner, 'googletest')
super(GoogleCalendar2018SmoothPage, self).RunNavigateSteps(action_runner) super(GoogleCalendar2018SmoothPage, self).RunNavigateSteps(action_runner)
action_runner.WaitForElement('span[class~="sm8sCf"]') action_runner.WaitForElement('span[class~="sm8sCf"]')
......
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