Skip to content

Commit

Permalink
Tests debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning committed Dec 15, 2023
1 parent 7126c41 commit 30c575e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/dusk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
5 changes: 5 additions & 0 deletions tests/Browser/CartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit 30c575e

Please sign in to comment.