From bce7f3465766da4ec3473507bcc9a54ed4d7b356 Mon Sep 17 00:00:00 2001 From: Ben Walch Date: Thu, 17 Oct 2024 09:33:54 +0200 Subject: [PATCH] [TEST] update codeception test --- .github/workflows/codeception.yml | 17 ++++++++++------- tests/_envs/github.yml | 9 +++++---- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/codeception.yml b/.github/workflows/codeception.yml index d4e71e9..07f68e8 100644 --- a/.github/workflows/codeception.yml +++ b/.github/workflows/codeception.yml @@ -40,12 +40,13 @@ jobs: matrix: php: [ 8.2 ] symfony: [ ^6.2 ] - pimcore: [ ~11.0.0 ] + pimcore: [ ~11.2.0 ] include: - - pimcore: ~11.0.0 + - pimcore: ~11.2.0 template_tag: v11.0.0 steps: - - uses: actions/checkout@v2 + - uses: nanasess/setup-chromedriver@v2 + - uses: actions/checkout@v4 with: path: lib/test-bundle @@ -98,9 +99,11 @@ jobs: - name: Setup Chromium run: | - nohup $CHROMEWEBDRIVER/chromedriver --url-base=/wd/hub /dev/null 2>&1 & + export DISPLAY=:99 + chromedriver --url-base=/wd/hub --port=9515 & + sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & - - name: Start Webserver and Chrome + - name: Start Symfony Server run: | curl -sS https://get.symfony.com/cli/installer | bash -s -- --install-dir=$HOME/.symfony/bin ~/.symfony/bin/symfony server:start --port=8080 --dir=public --allow-http --no-tls --daemon @@ -108,10 +111,10 @@ jobs: - name: Get Composer Cache Directory id: composer-cache run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache Composer Downloads - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} diff --git a/tests/_envs/github.yml b/tests/_envs/github.yml index efc6673..bba7660 100644 --- a/tests/_envs/github.yml +++ b/tests/_envs/github.yml @@ -1,12 +1,13 @@ modules: config: - \Dachcom\Codeception\Helper\Browser\WebDriver: + \Dachcom\Codeception\Support\Helper\Browser\WebDriver: browser: chrome port: 9515 restart: true wait: 1 + window_size: 1280x1024 capabilities: - chromeOptions: - args: ['--no-sandbox', '--disable-extensions', '--headless', '--disable-gpu', '--disable-dev-shm-usage', '--window-size=1024,768'] + 'goog:chromeOptions': + 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 + download.default_directory: '%TEST_BUNDLE_TEST_DIR%/_data/downloads'