Skip to content

Commit 7d7d033

Browse files
committed
Revert "Switch from pest-plugin-browser to symfony/panther and zenstruck/browser"
This reverts commit 5d1d031.
1 parent 7073a55 commit 7d7d033

10 files changed

Lines changed: 3853 additions & 2736 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,8 @@ jobs:
154154
- name: Install pnpm dependencies
155155
run: pnpm install
156156

157-
- name: Install Chromium
158-
run: |
159-
sudo apt-get update -qq
160-
sudo apt-get install -y chromium-browser
157+
- name: Install Playwright Browsers
158+
run: npx playwright install --with-deps
161159

162160
- name: Cache composer dependencies
163161
uses: actions/cache@v3
@@ -168,11 +166,8 @@ jobs:
168166
- name: Run composer install
169167
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
170168

171-
- name: Install ChromeDriver
172-
run: ./vendor/bin/bdi detect drivers
173-
174-
- name: Run PHPUnit tests
175-
run: ./vendor/bin/phpunit --colors=always
169+
- name: Run Pest tests
170+
run: ./vendor/bin/pest -v --ci --bail --colors=always
176171

177172
- name: Upload test results
178173
if: always()

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ node_modules/
66
var
77
drivers
88
driver
9-
tmp/

Makefile

Lines changed: 0 additions & 47 deletions
This file was deleted.

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"require-dev": {
33
"rector/rector": "^1.2",
4-
"symfony/var-dumper": "^7.3",
5-
"phpunit/phpunit": "^12",
6-
"symfony/panther": "^2.2",
7-
"zenstruck/browser": "^1.9",
8-
"dbrekelmans/bdi": "^1.4"
4+
"pestphp/pest": "^4.1",
5+
"pestphp/pest-plugin-browser": "^4.1",
6+
"symfony/var-dumper": "^7.3"
97
},
108
"autoload": {
119
"psr-4": {
1210
"Tests\\": "tests/"
1311
}
1412
},
1513
"config": {
16-
"allow-plugins": {}
14+
"allow-plugins": {
15+
"pestphp/pest-plugin": true
16+
}
1717
}
1818
}

0 commit comments

Comments
 (0)