Skip to content

Commit 8f869a7

Browse files
committed
one more fix
1 parent 13c26b9 commit 8f869a7

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

.github/workflows/playwright.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Playwright Browsers
2222
run: npx playwright install --with-deps
2323
- name: Run Playwright tests
24-
run: npm test
24+
run: CI=true npm test
2525
- uses: actions/upload-artifact@v4
2626
if: ${{ !cancelled() }}
2727
with:
@@ -45,7 +45,16 @@ jobs:
4545
build-args: mode=playwright
4646
- name: Run Playwright tests
4747
run: |
48-
docker run --rm --name playwright -v $(pwd)/test-results-docker-org:/test-results -e VUE_APP_SCOPE=organization -e VUE_APP_GITHUB_ORG=octodemo -e VUE_APP_GITHUB_API=/api/github -e APP_MOCKED_DATA=true -e SESSION_SECRET=dummy api:test "@org"
48+
docker run --rm --name playwright \
49+
-v $(pwd)/test-results-docker-org:/test-results \
50+
-e CI=true \
51+
-e VUE_APP_SCOPE=organization \
52+
-e VUE_APP_GITHUB_ORG=octodemo \
53+
-e VUE_APP_GITHUB_API=/api/github \
54+
-e APP_MOCKED_DATA=true \
55+
-e VUE_APP_GITHUB_TOKEN=dummy \
56+
-e SESSION_SECRET=dummy \
57+
api:test "@org"
4958
- uses: actions/upload-artifact@v4
5059
if: ${{ !cancelled() }}
5160
with:
@@ -69,7 +78,16 @@ jobs:
6978
build-args: mode=playwright
7079
- name: Run Playwright tests
7180
run: |
72-
docker run --rm --name playwright -v $(pwd)/test-results-docker-ent:/test-results -e VUE_APP_SCOPE=enterprise -e VUE_APP_GITHUB_ENT=octodemo -e VUE_APP_GITHUB_API=/api/github -e APP_MOCKED_DATA=true -e SESSION_SECRET=dummy api:test "@ent"
81+
docker run --rm --name playwright \
82+
-v $(pwd)/test-results-docker-ent:/test-results \
83+
-e CI=true \
84+
-e VUE_APP_SCOPE=enterprise \
85+
-e VUE_APP_GITHUB_ENT=octodemo \
86+
-e VUE_APP_GITHUB_API=/api/github \
87+
-e APP_MOCKED_DATA=true \
88+
-e VUE_APP_GITHUB_TOKEN=dummy \
89+
-e SESSION_SECRET=dummy \
90+
api:test "@ent"
7391
- uses: actions/upload-artifact@v4
7492
if: ${{ !cancelled() }}
7593
with:

package-lock.json

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright.docker.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ export default defineConfig({
55
...baseConfig,
66
use: {
77
baseURL: 'http://127.0.0.1:3000',
8+
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
9+
trace: 'retain-on-failure',
10+
screenshot: 'on',
811
},
912
webServer: {
1013
command: '/api/docker-entrypoint.api/entrypoint.sh',

0 commit comments

Comments
 (0)