Skip to content

Commit 3946ba9

Browse files
committed
add: browser testing setup with Playwright, composer patching, and dependency updates
1 parent 8e550ba commit 3946ba9

File tree

6 files changed

+2174
-455
lines changed

6 files changed

+2174
-455
lines changed

composer.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"umulmrum/holiday": "^0.11"
2828
},
2929
"require-dev": {
30+
"cweagans/composer-patches": "^2.0",
3031
"driftingly/rector-laravel": "^2.1",
3132
"fakerphp/faker": "^1.24",
3233
"laravel/boost": "^1.8",
@@ -36,8 +37,9 @@
3637
"laravel/sail": "^1.48",
3738
"mockery/mockery": "^1.6",
3839
"nunomaduro/collision": "^8.8",
39-
"pestphp/pest": "^3.8",
40-
"pestphp/pest-plugin-laravel": "^3.2"
40+
"pestphp/pest": "^v4.1",
41+
"pestphp/pest-plugin-browser": "^4.1",
42+
"pestphp/pest-plugin-laravel": "^4.0"
4143
},
4244
"autoload": {
4345
"psr-4": {
@@ -80,6 +82,11 @@
8082
"extra": {
8183
"laravel": {
8284
"dont-discover": []
85+
},
86+
"patches": {
87+
"pestphp/pest-plugin-browser": {
88+
"Use device scale for browser screenshots": "tests/patches/pest-plugin-browser/device-scale.patch"
89+
}
8390
}
8491
},
8592
"config": {
@@ -88,7 +95,9 @@
8895
"sort-packages": true,
8996
"allow-plugins": {
9097
"pestphp/pest-plugin": true,
91-
"php-http/discovery": true
98+
"php-http/discovery": true,
99+
"cweagans/composer-patches": true,
100+
"cweagans/composer-configurable-plugin": true
92101
}
93102
},
94103
"minimum-stability": "dev",

0 commit comments

Comments
 (0)