From 03b53b47d71cbd825373cd2fec9814db10d9a827 Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Wed, 20 Sep 2023 17:25:08 +0200 Subject: [PATCH] fix tests --- .github/workflows/codeception.yml | 4 +++- tests/_envs/github.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeception.yml b/.github/workflows/codeception.yml index b60697b7..3c1e177c 100644 --- a/.github/workflows/codeception.yml +++ b/.github/workflows/codeception.yml @@ -98,7 +98,9 @@ jobs: - name: Setup Chromium run: | - nohup $CHROMEWEBDRIVER/chromedriver --url-base=/wd/hub /dev/null 2>&1 & + export DISPLAY=:99 + chromedriver --url-base=/wd/hub & + sudo Xvfb -ac :99 -screen 0 1280x1024x24x24 > /dev/null 2>&1 & - name: Start Symfony Server run: | diff --git a/tests/_envs/github.yml b/tests/_envs/github.yml index 10c1347f..a87e262e 100644 --- a/tests/_envs/github.yml +++ b/tests/_envs/github.yml @@ -7,6 +7,6 @@ modules: wait: 1 capabilities: chromeOptions: - args: ['--disable-extensions', '--headless', '--disable-gpu', '--disable-dev-shm-usage', '--window-size=1280,1024'] + args: ['--no-sandbox', '--disable-extensions', '--headless', '--disable-gpu', '--disable-dev-shm-usage', '--window-size=1280,1024'] prefs: download.default_directory: '%TEST_BUNDLE_TEST_DIR%/_data/downloads' \ No newline at end of file