Skip to content

Commit 4010ce4

Browse files
authored
ci/oidc-e2e: save full HTML reports on failure (#1640)
Make troubleshooting CI test failures easier by saving the HTML test report on failure. Encountered while working on getodk/central#1233
1 parent 20afaae commit 4010ce4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/oidc-e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
node-version: 22.16.0
4242
cache: 'npm'
4343
- run: make test-oidc-e2e
44-
- name: Archive playwright screenshots
44+
- name: Archive Playwright Test Report
4545
if: failure()
4646
uses: actions/upload-artifact@v4
4747
with:
48-
name: Playwright Screenshots
49-
path: test/e2e/oidc/playwright-tests/results/**/*.png
48+
name: Playwright Test Report
49+
path: test/e2e/oidc/playwright-tests/results/html-report/

test/e2e/oidc/playwright-tests/playwright.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config = {
4343
retries: 0, // retries mean failure
4444
workers: process.env.CI ? 1 : undefined,
4545
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
46-
reporter: 'line',
46+
reporter: [ [ 'html', { outputFolder: 'results/html-report' } ] ],
4747
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4848
use: {
4949
actionTimeout: 0,
@@ -56,7 +56,7 @@ const config = {
5656
headless: true,
5757
},
5858
projects,
59-
outputDir: 'results/',
59+
outputDir: 'results/basic',
6060
globalSetup: require.resolve('./src/global-setup-teardown'),
6161
};
6262

0 commit comments

Comments
 (0)