Skip to content

Commit 6400eb0

Browse files
author
Obada Haddad
committed
Trying Yarn instead of NPM and NPX
1 parent cc12be0 commit 6400eb0

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: "Setup: Prepare the playwright environment"
1717
run: |
1818
cd tests
19-
npm install
20-
npx playwright install --with-deps
19+
yarn install
20+
yarn playwright install --with-deps
2121
- name: "Docker: Build containers and collect static files"
2222
run: |
2323
docker compose -f docker-compose.yml -f docker-compose.selenium.yml -f docker-compose.playwright.yml up -d

docker-compose.playwright.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
services:
22
playwright:
3+
network_mode: host
34
init: true
45
stdin_open: true
56
tty: true
67
working_dir: /home/pwuser
78
user: pwuser
8-
ports:
9-
- 3000:3000
109
image: mcr.microsoft.com/playwright:v1.56.0-noble
1110
command: /bin/sh -c "npx -y playwright@1.56.0 run-server --port 3000 --host
1211
0.0.0.0"

tests/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
use: {
2828
viewport: { width: 1500, height: 1000 },
2929
/* Base URL to use in actions like `await page.goto('')`. */
30-
baseURL: 'http://django:8000',
30+
baseURL: 'http://localhost',
3131
// Capture screenshot after each test failure.
3232
screenshot: 'only-on-failure',
3333

0 commit comments

Comments
 (0)