Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2357)

Unified Diff: tools/perf/page_sets/system_health/blank_stories.py

Issue 2787103003: Add System health stories for Emerging market (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/system_health/blank_stories.py
diff --git a/tools/perf/page_sets/system_health/blank_stories.py b/tools/perf/page_sets/system_health/blank_stories.py
index ffe0eccf0836c7361b43a7609799fef16ad520df..291c4eae2b0c11c910178d98a826f612f7e922f0 100644
--- a/tools/perf/page_sets/system_health/blank_stories.py
+++ b/tools/perf/page_sets/system_health/blank_stories.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
from page_sets.system_health import system_health_story
+from page_sets.system_health import platforms
class BlankAboutBlankStory(system_health_story.SystemHealthStory):
@@ -23,3 +24,21 @@ class BlankAboutBlankStory(system_health_story.SystemHealthStory):
"""
)
action_runner.WaitForJavaScriptCondition("window.__hasRunRAF")
+
+
+class MobileNewTabPageStory(system_health_story.SystemHealthStory):
+ """Story that loads new tab page and opens menu."""
+
+ NAME = 'blank:about:newtab'
perezju 2017/03/31 08:45:54 I don't think this is a "blank" story, it's actual
ssid 2017/04/04 03:43:48 Done.
+ URL = 'chrome://newtab'
+
+ def RunPageInteractions(self, action_runner):
+ package = action_runner.tab.browser.GetBrowserInfo().package_name
+ platform = action_runner.tab.browser.platform
+ menu_button = package+':id/menu_button'
+ platform.system_ui.WaitForUiNode(resource_id=menu_button)
+ menu_button = platform.system_ui.GetUiNode(resource_id=menu_button)
+ menu_button.Tap()
+ platform.system_ui.WaitForUiNode(resource_id=package+':id/menu_item_text')
+
+ SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY

Powered by Google App Engine
This is Rietveld 408576698