Skip to content

Commit 945dfc7

Browse files
committed
sleep
1 parent 15c3ca6 commit 945dfc7

File tree

8 files changed

+75
-14
lines changed

8 files changed

+75
-14
lines changed

.github/workflows/playwright-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: docker-compose run playwright yarn
2525
- name: Up environment
2626
run: docker-compose -f "./../docker-compose-ci.yml" up --detach api client postgres
27+
- name: Wait
28+
run: sleep 5
2729
- name: Run tests
2830
run: docker-compose run playwright npx playwright test
2931
- name: Stop containers

.gitpod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ ports:
99
- port: 3306
1010
onOpen: ignore
1111
- port: 8000
12-
onOpen: open-browser
12+
onOpen: ignore
1313
- port: 3000
14-
onOpen: open-browser
14+
onOpen: ignore
1515

1616
vscode:
1717
extensions:

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ dev-daemon:
2020
docker-compose up -d
2121
down:
2222
docker-compose down
23+
api-install:
24+
docker exec -it api composer install --no-dev --no-cache --ignore-platform-reqs
2325
api-debug:
2426
docker exec -it api php artisan serve --host 0.0.0.0 --port 8000
2527
api-serve:
@@ -29,7 +31,7 @@ api-ssh:
2931
api-restart:
3032
docker-compose restart api --no-deps
3133
client-serve:
32-
docker exec -it client yarn dev --host
34+
docker exec -it client yarn dev
3335
client-ssh:
3436
docker exec -it client /bin/bash
3537
playwright-ssh:

client/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
client/playwright/playwright-report

client/playwright-report/index.html

Lines changed: 62 additions & 0 deletions
Large diffs are not rendered by default.

client/playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { defineConfig, devices } from '@playwright/test';
66
*/
77
// require('dotenv').config();
88

9+
process.env.PW_CLIENT_URL = 'http://client:3000'
10+
911
/**
1012
* See https://playwright.dev/docs/test-configuration.
1113
*/
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from '@playwright/test';
22

33
test('loads the app', async ({ page }) => {
4-
await page.goto('http://localhost:3000');
4+
await page.goto(process.env.PW_CLIENT_URL);
55

6-
await expect(page).toHaveURL(/localhost:3000/);
6+
await expect(page).toHaveURL(process.env.PW_CLIENT_URL);
77
});

start-container

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

0 commit comments

Comments
 (0)