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

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

Issue 2162473002: [system health] Add desktop browsing story for facebook and change url of twitter story. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: record wpr, disable facebook Created 4 years, 5 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/browsing_stories.py
diff --git a/tools/perf/page_sets/system_health/browsing_stories.py b/tools/perf/page_sets/system_health/browsing_stories.py
index 072b2f42f831ef8f72ed15a57747046c5b55de3b..388e0ee5c3ea0c46d6988163c40715dbe8192216 100644
--- a/tools/perf/page_sets/system_health/browsing_stories.py
+++ b/tools/perf/page_sets/system_health/browsing_stories.py
@@ -94,11 +94,19 @@ class FacebookMobileStory(_NewsBrowsingStory):
NAME = 'browse:social:facebook'
URL = 'https://www.facebook.com/rihanna'
ITEM_SELECTOR = 'article ._5msj'
- # Facebook on desktop is not interesting because it embeds post comments
- # directly in the main timeline.
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
+class FacebookDesktopStory(_NewsBrowsingStory):
+ NAME = 'browse:social:facebook'
+ URL = 'https://www.facebook.com/rihanna'
+ ITEM_SELECTOR = '._4-eo'
+ IS_SINGLE_PAGE_APP = True
+ # Web-page-replay does not work for this website:
+ # https://github.com/chromium/web-page-replay/issues/79.
+ SUPPORTED_PLATFORMS = platforms.NO_PLATFORMS
+
+
class HackerNewsStory(_NewsBrowsingStory):
NAME = 'browse:news:hackernews'
URL = 'https://news.ycombinator.com'
@@ -152,14 +160,14 @@ class RedditMobileStory(_NewsBrowsingStory):
class TwitterMobileStory(_NewsBrowsingStory):
NAME = 'browse:social:twitter'
- URL = 'https://www.twitter.com/justinbieber?skip_interstitial=true'
+ URL = 'https://www.twitter.com/nasa'
ITEM_SELECTOR = '.Tweet-text'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
class TwitterDesktopStory(_NewsBrowsingStory):
NAME = 'browse:social:twitter'
- URL = 'https://www.twitter.com/justinbieber?skip_interstitial=true'
+ URL = 'https://www.twitter.com/nasa'
IS_SINGLE_PAGE_APP = True
ITEM_SELECTOR = '.tweet-text'
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
« no previous file with comments | « tools/perf/page_sets/data/system_health_mobile_023.wpr.sha1 ('k') | tools/perf/page_sets/system_health/loading_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698