From 23337611380da2ed9a077115ddf855c0ec878c78 Mon Sep 17 00:00:00 2001 From: Alex Carney Date: Wed, 30 Aug 2023 00:20:48 +0100 Subject: [PATCH] chore: fix deprecation warning, set chrome path --- tests/pyodide_testrunner/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/pyodide_testrunner/run.py b/tests/pyodide_testrunner/run.py index f70b1d07..44954a51 100644 --- a/tests/pyodide_testrunner/run.py +++ b/tests/pyodide_testrunner/run.py @@ -101,7 +101,9 @@ def main(): driver_cls, options_cls = BROWSERS[os.environ.get("BROWSER", "chrome")] options = options_cls() - options.headless = "CI" in os.environ + if "CI" in os.environ: + options.binary_location = "/usr/bin/google-chrome" + options.add_argument('--headless') driver = driver_cls(options=options) driver.get(f"http://localhost:{port}?whl={whl}")