Add --ignore-certificate-errors flag to chromium-browser command in integration tests.

This flag fix error messages when running the tests for the first time.
pull/554/head
Clement Michaud 2020-01-17 22:06:33 +01:00 committed by Clément Michaud
parent 9f2cca1ebf
commit 6792fd5bc3
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ func StartWebDriverWithProxy(proxy string, port int) (*WebDriverSession, error)
Path: "/usr/bin/chromium-browser", Path: "/usr/bin/chromium-browser",
} }
chromeCaps.Args = append(chromeCaps.Args, "--ignore-certificate-errors")
if os.Getenv("HEADLESS") != "" { if os.Getenv("HEADLESS") != "" {
chromeCaps.Args = append(chromeCaps.Args, "--headless") chromeCaps.Args = append(chromeCaps.Args, "--headless")
chromeCaps.Args = append(chromeCaps.Args, "--no-sandbox") chromeCaps.Args = append(chromeCaps.Args, "--no-sandbox")