Commit 04858456 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

Add browse:social:pinterest_infinite_scroll:2019 system health story

This CL was created automatically with tools/perf/update_wpr script

R=crouleau@chromium.org

Bug: 878390
Change-Id: I8e63fd3c0b5af0d88eca724e27e4c1fdcab65bdf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1973825
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727051}
parent 025c016a
...@@ -50,6 +50,7 @@ _DISABLED_TESTS = frozenset({ ...@@ -50,6 +50,7 @@ _DISABLED_TESTS = frozenset({
'system_health.memory_mobile/browse:tech:discourse_infinite_scroll', 'system_health.memory_mobile/browse:tech:discourse_infinite_scroll',
'system_health.memory_mobile/browse:shopping:amazon', 'system_health.memory_mobile/browse:shopping:amazon',
'system_health.memory_mobile/browse:social:facebook_infinite_scroll', 'system_health.memory_mobile/browse:social:facebook_infinite_scroll',
'system_health.memory_mobile/browse:social:pinterest_infinite_scroll',
'system_health.memory_mobile/browse:media:facebook_photos', 'system_health.memory_mobile/browse:media:facebook_photos',
'system_health.memory_mobile/browse:social:instagram', 'system_health.memory_mobile/browse:social:instagram',
'system_health.memory_mobile/browse:news:reddit', 'system_health.memory_mobile/browse:news:reddit',
......
...@@ -153,6 +153,9 @@ ...@@ -153,6 +153,9 @@
"browse:social:pinterest_infinite_scroll": { "browse:social:pinterest_infinite_scroll": {
"DEFAULT": "system_health_mobile_063.wprgo" "DEFAULT": "system_health_mobile_063.wprgo"
}, },
"browse:social:pinterest_infinite_scroll:2019": {
"DEFAULT": "system_health_mobile_d8fcf4e2bf.wprgo"
},
"browse:social:tumblr_infinite_scroll": { "browse:social:tumblr_infinite_scroll": {
"DEFAULT": "system_health_mobile_062.wprgo" "DEFAULT": "system_health_mobile_062.wprgo"
}, },
...@@ -405,4 +408,4 @@ ...@@ -405,4 +408,4 @@
}, },
"description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.", "description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.",
"platform_specific": true "platform_specific": true
} }
\ No newline at end of file
59f470c49462e7fc381f6a0afaf6b54481d7ffdb
\ No newline at end of file
...@@ -5,11 +5,27 @@ ...@@ -5,11 +5,27 @@
from page_sets.login_helpers import login_utils from page_sets.login_helpers import login_utils
def _LoginAccount(action_runner, credential, credentials_path):
account_name, password = login_utils.GetAccountNameAndPassword(
credential, credentials_path=credentials_path)
action_runner.Navigate('https://www.pinterest.co.uk/login/')
action_runner.Wait(1) # Error page happens if this wait is not here.
action_runner.WaitForElement(selector='button[type=submit]')
login_utils.InputWithSelector(
action_runner, '%s@gmail.com' % account_name, 'input[type=email]')
login_utils.InputWithSelector(
action_runner, password, 'input[type=password]')
action_runner.ClickElement(selector='button[type=submit]')
def LoginDesktopAccount(action_runner, credential, def LoginDesktopAccount(action_runner, credential,
credentials_path=login_utils.DEFAULT_CREDENTIAL_PATH): credentials_path=login_utils.DEFAULT_CREDENTIAL_PATH):
"""Logs in into a Dropbox account. """Logs in into a Pinterest account on desktop.
This function navigates the tab into Dropbox's login page and logs in a user This function navigates the tab into Pinterest's login page and logs in a user
using credentials in |credential| part of the |credentials_path| file. using credentials in |credential| part of the |credentials_path| file.
Args: Args:
...@@ -21,19 +37,25 @@ def LoginDesktopAccount(action_runner, credential, ...@@ -21,19 +37,25 @@ def LoginDesktopAccount(action_runner, credential,
exceptions.Error: See ExecuteJavaScript() exceptions.Error: See ExecuteJavaScript()
for a detailed list of possible exceptions. for a detailed list of possible exceptions.
""" """
account_name, password = login_utils.GetAccountNameAndPassword( _LoginAccount(action_runner, credential, credentials_path)
credential, credentials_path=credentials_path) action_runner.WaitForElement(selector='input[name=searchBoxInput]')
action_runner.Navigate('https://www.pinterest.com/login/') def LoginMobileAccount(action_runner, credential,
action_runner.Wait(1) # Error page happens if this wait is not here. credentials_path=login_utils.DEFAULT_CREDENTIAL_PATH):
action_runner.WaitForElement(selector='button[type=submit]') """Logs in into a Pinterest account on mobile.
login_utils.InputWithSelector( This function navigates the tab into Pinterest's login page and logs in a user
action_runner, '%s@gmail.com' % account_name, 'input[type=email]') using credentials in |credential| part of the |credentials_path| file.
login_utils.InputWithSelector( Args:
action_runner, password, 'input[type=password]') action_runner: Action runner responsible for running actions on the page.
credential: The credential to retrieve from the credentials file (string).
credentials_path: The path to credential file (string).
action_runner.ClickElement(selector='button[type=submit]') Raises:
exceptions.Error: See ExecuteJavaScript()
for a detailed list of possible exceptions.
"""
_LoginAccount(action_runner, credential, credentials_path)
action_runner.WaitForElement(selector='svg[aria-label="Search"]')
action_runner.WaitForElement(selector='input[name=searchBoxInput]')
...@@ -1690,6 +1690,18 @@ class PinterestMobileStory(_InfiniteScrollStory): ...@@ -1690,6 +1690,18 @@ class PinterestMobileStory(_InfiniteScrollStory):
TAGS = [story_tags.INFINITE_SCROLL, story_tags.YEAR_2016] TAGS = [story_tags.INFINITE_SCROLL, story_tags.YEAR_2016]
class PinterestMobileStory2019(_InfiniteScrollStory):
NAME = 'browse:social:pinterest_infinite_scroll:2019'
URL = 'https://www.pinterest.co.uk'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.INFINITE_SCROLL, story_tags.YEAR_2019]
# TODO(crbug.com/862077): Story breaks if login is skipped during replay.
SKIP_LOGIN = False
def _Login(self, action_runner):
pinterest_login.LoginMobileAccount(action_runner, 'googletest')
class TumblrStory2018(_InfiniteScrollStory): class TumblrStory2018(_InfiniteScrollStory):
NAME = 'browse:social:tumblr_infinite_scroll:2018' NAME = 'browse:social:tumblr_infinite_scroll:2018'
URL = 'https://techcrunch.tumblr.com/' URL = 'https://techcrunch.tumblr.com/'
......
...@@ -59,6 +59,7 @@ browse:social:facebook_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scr ...@@ -59,6 +59,7 @@ browse:social:facebook_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scr
browse:social:instagram,,mobile,"2016,emerging_market" browse:social:instagram,,mobile,"2016,emerging_market"
browse:social:instagram:2019,,mobile,"2019,emerging_market" browse:social:instagram:2019,,mobile,"2019,emerging_market"
browse:social:pinterest_infinite_scroll,,mobile,"2016,infinite_scroll" browse:social:pinterest_infinite_scroll,,mobile,"2016,infinite_scroll"
browse:social:pinterest_infinite_scroll:2019,,mobile,"2019,infinite_scroll"
browse:social:tumblr_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scroll,javascript_heavy" browse:social:tumblr_infinite_scroll:2018,,"desktop,mobile","2018,infinite_scroll,javascript_heavy"
browse:social:twitter,,mobile,2016 browse:social:twitter,,mobile,2016
browse:social:twitter:2018,,desktop,2018 browse:social:twitter:2018,,desktop,2018
......
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