Skip to content

Commit 30f4284

Browse files
committed
Fixed Playwright versioning issues by forcing it to install browsers.
1 parent a1b1c12 commit 30f4284

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/regression.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
--overrides '{\
5656
"containerOverrides":[{\
5757
"name":"playwright",\
58-
"command"\
59-
["npx","playwright","test"]}]}'
58+
"command":["sh", "-c", \
59+
"npx playwright install && npx playwright test"]}]}'
6060
continue-on-error: false # Ensure it stops if the ECS task fails
6161

6262
- name: Upload test results as artifact
@@ -115,8 +115,8 @@ jobs:
115115
assignPublicIp=\"ENABLED\"}" \
116116
--overrides '{"containerOverrides":\
117117
[{"name":"playwright",\
118-
"command":["npx",\
119-
"playwright","test"]}]}'
118+
"command":["sh", "-c", \
119+
"npx playwright install && npx playwright test"]}]}'
120120
continue-on-error: false # Ensure it stops if the ECS task fails
121121

122122
- name: Upload test results as artifact

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ services:
160160
# - rabbitmq-data:/var/lib/rabbitmq
161161

162162
playwright:
163-
image: mcr.microsoft.com/playwright:v1.41.2-jammy
163+
image: mcr.microsoft.com/playwright:v1.50.1-jammy
164164
working_dir: /workspace
165165
volumes:
166166
- ./playwright:/workspace
@@ -174,7 +174,7 @@ services:
174174
- PW_XFD_USER_ROLE=${PW_XFD_USER_ROLE}
175175
- PW_XFD_USERNAME=${PW_XFD_USERNAME}
176176
command: >
177-
/bin/bash -c "npm ci && npx playwright test"
177+
/bin/bash -c "npm ci && npx playwright install --with-deps && npx playwright test"
178178
179179
volumes:
180180
postgres-data:

0 commit comments

Comments
 (0)