From 30c575e2a937cd02a7cfe40bbd0d2bde25313a37 Mon Sep 17 00:00:00 2001 From: indy koning Date: Fri, 15 Dec 2023 15:13:24 +0100 Subject: [PATCH] Tests debugging --- .github/workflows/dusk.yml | 20 ++++++++++---------- tests/Browser/CartTest.php | 5 +++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dusk.yml b/.github/workflows/dusk.yml index 68dcd3371..9228a457f 100644 --- a/.github/workflows/dusk.yml +++ b/.github/workflows/dusk.yml @@ -13,15 +13,15 @@ jobs: fail-fast: false matrix: include: - - magento-version: 2.4.5-p2 - magento-php-version: php81-fpm - rapidez-php-version: 8.1 - - magento-version: 2.4.5-p2 - magento-php-version: php81-fpm - rapidez-php-version: 8.2 - - magento-version: 2.4.6 - magento-php-version: php81-fpm - rapidez-php-version: 8.1 + # - magento-version: 2.4.5-p2 + # magento-php-version: php81-fpm + # rapidez-php-version: 8.1 + # - magento-version: 2.4.5-p2 + # magento-php-version: php81-fpm + # rapidez-php-version: 8.2 + # - magento-version: 2.4.6 + # magento-php-version: php81-fpm + # rapidez-php-version: 8.1 - magento-version: 2.4.6 magento-php-version: php82-fpm rapidez-php-version: 8.2 @@ -73,7 +73,7 @@ jobs: - name: Dump magento logs if: failure() run: | - mkdir -p magento/var/log + mkdir -p magento/var docker cp ${{ job.services.magento.id }}:/data/var/log magento/var/log - name: Upload Artifact if: failure() diff --git a/tests/Browser/CartTest.php b/tests/Browser/CartTest.php index da3ae4f77..f4c23055d 100644 --- a/tests/Browser/CartTest.php +++ b/tests/Browser/CartTest.php @@ -14,10 +14,15 @@ public function addSimpleProduct() { $this->browse(function (Browser $browser) { $this->addProduct($browser, $this->testProduct->url) + ->screenshot('addSimpleProduct-1') ->visit('/cart') + ->screenshot('addSimpleProduct-2') ->waitUntilIdle() + ->screenshot('addSimpleProduct-3') ->waitFor('@cart-content', 15) + ->screenshot('addSimpleProduct-4') ->waitUntilIdle() + ->screenshot('addSimpleProduct-5') ->assertSee($this->testProduct->name); }); }