File tree Expand file tree Collapse file tree 11 files changed +82
-10
lines changed Expand file tree Collapse file tree 11 files changed +82
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
CHANGELOG.md export-ignore
10
10
README.md export-ignore
11
+ .github /workflows /browser-test.yml export-ignore
Original file line number Diff line number Diff line change
1
+ name : browser-tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - pest-ci
7
+ - develop
8
+ - main
9
+ pull_request :
10
+ branches :
11
+ - pest-ci
12
+ - develop
13
+ - main
14
+
15
+ jobs :
16
+ ci :
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup PHP
24
+ uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : 8.4
27
+ tools : composer:v2
28
+ coverage : xdebug
29
+
30
+ - name : Setup Node
31
+ uses : actions/setup-node@v4
32
+ with :
33
+ node-version : ' 22'
34
+ cache : ' npm'
35
+
36
+ - name : Install Node Dependencies
37
+ run : npm ci
38
+
39
+ - name : Install Playwright Dependencies
40
+ run : npm install playwright@latest
41
+
42
+ - name : Install Playwright Browsers
43
+ run : npx playwright install --with-deps
44
+
45
+ - name : Add `laravel-labs/starter-kit-browser-tests` Repository
46
+ run : |
47
+ composer config repositories.browser-tests '{"type": "vcs", "url": "https://github.com/laravel-labs/starter-kit-browser-tests"}' --file composer.json
48
+ composer remove "phpunit/phpunit" --dev --no-update
49
+ composer require "laravel-labs/starter-kit-browser-tests:dev-main@dev" --dev --no-update
50
+
51
+ - name : Install Dependencies
52
+ run : composer install --no-interaction --prefer-dist --optimize-autoloader
53
+
54
+ - name : Copy Environment File
55
+ run : cp .env.example .env
56
+
57
+ - name : Generate Application Key
58
+ run : php artisan key:generate
59
+
60
+ - name : Setup Test Environment
61
+ run : |
62
+ cp vendor/laravel-labs/starter-kit-browser-tests/phpunit.xml.dist .
63
+ rm phpunit.xml
64
+ rm -Rf tests/
65
+ cp -rf vendor/laravel-labs/starter-kit-browser-tests/tests/ tests/
66
+
67
+ - name : Build Assets
68
+ run : npm run build
69
+
70
+ - name : Tests
71
+ run : php vendor/bin/pest
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const passwordInput = ref<InstanceType<typeof Input> | null>(null);
33
33
</div >
34
34
<Dialog >
35
35
<DialogTrigger as-child >
36
- <Button variant =" destructive" >Delete account</Button >
36
+ <Button variant =" destructive" data-test = " delete-user-button " >Delete account</Button >
37
37
</DialogTrigger >
38
38
<DialogContent >
39
39
<Form
@@ -75,7 +75,7 @@ const passwordInput = ref<InstanceType<typeof Input> | null>(null);
75
75
</Button >
76
76
</DialogClose >
77
77
78
- <Button type =" submit" variant =" destructive" :disabled =" processing" > Delete account </Button >
78
+ <Button type =" submit" variant =" destructive" :disabled =" processing" data-test = " confirm-delete-user-button " > Delete account </Button >
79
79
</DialogFooter >
80
80
</Form >
81
81
</DialogContent >
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ defineProps<Props>();
35
35
</DropdownMenuGroup >
36
36
<DropdownMenuSeparator />
37
37
<DropdownMenuItem :as-child =" true" >
38
- <Link class =" block w-full" :href =" logout()" @click =" handleLogout" as =" button" >
38
+ <Link class =" block w-full" :href =" logout()" @click =" handleLogout" as =" button" data-test = " logout-button " >
39
39
<LogOut class =" mr-2 h-4 w-4" />
40
40
Log out
41
41
</Link >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { LoaderCircle } from 'lucide-vue-next';
31
31
</div >
32
32
33
33
<div class =" flex items-center" >
34
- <Button class =" w-full" :disabled =" processing" >
34
+ <Button class =" w-full" :disabled =" processing" data-test = " confirm-password-button " >
35
35
<LoaderCircle v-if =" processing" class =" h-4 w-4 animate-spin" />
36
36
Confirm Password
37
37
</Button >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ defineProps<{
32
32
</div >
33
33
34
34
<div class =" my-6 flex items-center justify-start" >
35
- <Button class =" w-full" :disabled =" processing" >
35
+ <Button class =" w-full" :disabled =" processing" data-test = " email-password-reset-link-button " >
36
36
<LoaderCircle v-if =" processing" class =" h-4 w-4 animate-spin" />
37
37
Email password reset link
38
38
</Button >
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ defineProps<{
72
72
</Label >
73
73
</div >
74
74
75
- <Button type =" submit" class =" mt-4 w-full" :tabindex =" 4" :disabled =" processing" >
75
+ <Button type =" submit" class =" mt-4 w-full" :tabindex =" 4" :disabled =" processing" data-test = " login-button " >
76
76
<LoaderCircle v-if =" processing" class =" h-4 w-4 animate-spin" />
77
77
Log in
78
78
</Button >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ import { LoaderCircle } from 'lucide-vue-next';
54
54
<InputError :message =" errors.password_confirmation" />
55
55
</div >
56
56
57
- <Button type =" submit" class =" mt-2 w-full" tabindex =" 5" :disabled =" processing" >
57
+ <Button type =" submit" class =" mt-2 w-full" tabindex =" 5" :disabled =" processing" data-test = " register-user-button " >
58
58
<LoaderCircle v-if =" processing" class =" h-4 w-4 animate-spin" />
59
59
Create account
60
60
</Button >
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const inputEmail = ref(props.email);
61
61
<InputError :message =" errors.password_confirmation" />
62
62
</div >
63
63
64
- <Button type =" submit" class =" mt-4 w-full" :disabled =" processing" >
64
+ <Button type =" submit" class =" mt-4 w-full" :disabled =" processing" data-test = " reset-password-button " >
65
65
<LoaderCircle v-if =" processing" class =" h-4 w-4 animate-spin" />
66
66
Reset password
67
67
</Button >
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const currentPasswordInput = ref<HTMLInputElement | null>(null);
84
84
</div >
85
85
86
86
<div class =" flex items-center gap-4" >
87
- <Button :disabled =" processing" >Save password</Button >
87
+ <Button :disabled =" processing" data-test = " update-password-button " >Save password</Button >
88
88
89
89
<Transition
90
90
enter-active-class =" transition ease-in-out"
You can’t perform that action at this time.
0 commit comments