From 6792fd5bc3dc7830e247b417099a158c047df6f2 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Fri, 17 Jan 2020 22:06:33 +0100 Subject: [PATCH] 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. --- internal/suites/webdriver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/suites/webdriver.go b/internal/suites/webdriver.go index fb29d1091..0d7ed456b 100644 --- a/internal/suites/webdriver.go +++ b/internal/suites/webdriver.go @@ -31,6 +31,8 @@ func StartWebDriverWithProxy(proxy string, port int) (*WebDriverSession, error) Path: "/usr/bin/chromium-browser", } + chromeCaps.Args = append(chromeCaps.Args, "--ignore-certificate-errors") + if os.Getenv("HEADLESS") != "" { chromeCaps.Args = append(chromeCaps.Args, "--headless") chromeCaps.Args = append(chromeCaps.Args, "--no-sandbox")