Commit 095a7a8e authored by rajendrant's avatar rajendrant Committed by Commit Bot

Fix https previres test

This CL setup command line params to skip optimization guide models to
trigger lite page redirect preview.

Bug: 1049675
Change-Id: I2dbcbf6af4ceddf302785c9e6b0514e1ec7e2f66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081844Reviewed-by: default avatarRobert Ogden <robertogden@chromium.org>
Commit-Queue: rajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746468}
parent afa54e1b
...@@ -22,7 +22,10 @@ LITEPAGES_REGEXP = r'https://\w+\.litepages\.googlezip\.net/.*' ...@@ -22,7 +22,10 @@ LITEPAGES_REGEXP = r'https://\w+\.litepages\.googlezip\.net/.*'
class HttpsPreviews(IntegrationTest): class HttpsPreviews(IntegrationTest):
def EnableLitePageServerPreviewsAndInit(self, t): def EnableLitePageServerPreviewsAndInit(self, t):
t.EnableChromeFeature('Previews') t.AddChromeArg('--force-fieldtrials=Previews/Enabled')
# Skip optimization guide models to trigger lite page redirect preview.
t.AddChromeArg('--force-fieldtrial-params='
'Previews.Enabled:override_should_show_preview_check/true')
t.EnableChromeFeature('LitePageServerPreviews') t.EnableChromeFeature('LitePageServerPreviews')
# RLH and NoScript may disable use of LitePageRedirect Previews. # RLH and NoScript may disable use of LitePageRedirect Previews.
...@@ -34,6 +37,8 @@ class HttpsPreviews(IntegrationTest): ...@@ -34,6 +37,8 @@ class HttpsPreviews(IntegrationTest):
t.AddChromeArg('--ignore-previews-blacklist') t.AddChromeArg('--ignore-previews-blacklist')
t.AddChromeArg('--force-effective-connection-type=2G') t.AddChromeArg('--force-effective-connection-type=2G')
t.AddChromeArg('--ignore-litepage-redirect-optimization-blacklist') t.AddChromeArg('--ignore-litepage-redirect-optimization-blacklist')
t.AddChromeArg('--litepage_redirect_overrides_page_hints')
t.SetExperiment('external_chrome_integration_test') t.SetExperiment('external_chrome_integration_test')
# Wait for the server probe to complete before starting the test, otherwise # Wait for the server probe to complete before starting the test, otherwise
......
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