We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ae510 commit e5ac532Copy full SHA for e5ac532
.github/workflows/dusk.yml
@@ -43,3 +43,17 @@ jobs:
43
44
- name: Execute tests
45
run: php artisan pest:dusk
46
+
47
+ - name: Upload Screenshots
48
+ if: failure()
49
+ uses: actions/upload-artifact@v4
50
+ with:
51
+ name: screenshots
52
+ path: tests/Browser/screenshots
53
54
+ - name: Upload Console Logs
55
56
57
58
+ name: console
59
+ path: tests/Browser/console
tests/Browser/Tasks/ScreenshotTest.php
@@ -0,0 +1,10 @@
1
+<?php
2
3
+use Laravel\Dusk\Browser;
4
5
+it('creates a screenshot', function () {
6
+ $this->browse(function (Browser $browser) {
7
+ $browser->visit('/')
8
+ ->screenshot('homepage');
9
+ });
10
+});
0 commit comments