Commit d036d8c8 authored by Ian Struiksma's avatar Ian Struiksma Committed by Commit Bot

Start Autofill Captured Sites tests in a maximized window

Some sites have very wide layouts which cause the tests to not find
elements if they are not on the initial screen, and save scrolling.

This fixes a couple tests on windows (sephora and carsforsale)

Change-Id: I9b959e76b48831bdb9d924764a81a754e1f829b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761212Reviewed-by: default avatarChristos Froussios <cfroussios@chromium.org>
Commit-Queue: Ian Struiksma <ianstruiksma@google.com>
Cr-Commit-Position: refs/heads/master@{#688568}
parent ddef800c
......@@ -25,6 +25,7 @@
#include "build/build_config.h"
#include "chrome/browser/permissions/permission_request_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/app_modal/javascript_app_modal_dialog.h"
......@@ -390,6 +391,7 @@ void TestRecipeReplayer::SetUpCommandLine(base::CommandLine* command_line) {
command_line->AppendSwitchASCII(
network::switches::kIgnoreCertificateErrorsSPKIList,
kWebPageReplayCertSPKI);
command_line->AppendSwitch(switches::kStartMaximized);
}
void TestRecipeReplayer::Setup() {
......
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