Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 7c1534c

Browse files
committed
Tests
1 parent cf75f49 commit 7c1534c

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
with:
9999
timeout_minutes: 10
100100
max_attempts: 3
101-
command: cd app && php artisan dusk
101+
command: cd app && php artisan dusk --stop-on-error --stop-on-failure
102102

103103
- name: Upload Screenshots
104104
if: failure()

app/tests/Browser/PreloadedModalTest.php

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ public function it_can_show_a_preloaded_modal()
2121

2222
$this->assertEquals(672, $width);
2323

24-
$browser->click('@close-modal-button')
24+
$browser
25+
->pause(500)
26+
->click('@close-modal-button')
27+
->pause(500)
2528
->waitUntilMissingText('Check out my modal!');
2629
});
2730
}
@@ -40,7 +43,10 @@ public function it_can_show_a_preloaded_slideover()
4043

4144
$this->assertEquals(448, $width);
4245

43-
$browser->click('@close-modal-button')
46+
$browser
47+
->pause(500)
48+
->click('@close-modal-button')
49+
->pause(500)
4450
->waitUntilMissingText('Check out my slideover!');
4551
});
4652
}
@@ -59,7 +65,10 @@ public function it_can_show_a_large_preloaded_modal()
5965

6066
$this->assertEquals(1280, $width);
6167

62-
$browser->click('@close-modal-button')
68+
$browser
69+
->pause(500)
70+
->click('@close-modal-button')
71+
->pause(500)
6372
->waitUntilMissingText('Check out my modal!');
6473
});
6574
}
@@ -78,7 +87,10 @@ public function it_can_show_a_large_preloaded_slideover()
7887

7988
$this->assertEquals(1280, $width);
8089

81-
$browser->click('@close-modal-button')
90+
$browser
91+
->pause(500)
92+
->click('@close-modal-button')
93+
->pause(500)
8294
->waitUntilMissingText('Check out my slideover!');
8395
});
8496
}

0 commit comments

Comments
 (0)