Skip to content

Commit ec4d1d2

Browse files
committed
just HTML reporter
1 parent e533b23 commit ec4d1d2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ jobs:
7171
if: always()
7272
with:
7373
name: playwright-report-pages
74-
path: special-pages/test-results
74+
path: |
75+
special-pages/playwright-report
76+
injected/playwright-report
7577
retention-days: 5
7678
- name: Build docs
7779
run: npm run docs

special-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build.dev": "npm run build -- --env development",
1212
"lint-fix": "cd ../ && npm run lint-fix",
1313
"test-unit": "node --test \"unit-test/*\" \"pages/history/unit-tests/*\" \"pages/duckplayer/unit-tests/*\" \"pages/new-tab/app/freemium-pir-banner/unit-tests/*\"",
14-
"test-int": "playwright test --grep-invert '@screenshots'",
14+
"test-int": "playwright test --grep-invert '@screenshots' history.spec.js",
1515
"test-int-x": "npm run test-int",
1616
"test-int-snapshots": "playwright test --grep '@screenshots'",
1717
"test-int-snapshots-update": "playwright test --grep '@screenshots' --update-snapshots --last-failed --pass-with-no-tests",

special-pages/playwright.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export default defineConfig({
9696
retries: process.env.CI ? 2 : 0,
9797
/* Opt out of parallel tests on CI. */
9898
workers: process.env.CI ? 1 : undefined,
99-
reporter: process.env.CI ? 'github' : [['html', { open: 'never' }]],
99+
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
100+
reporter: 'html',
100101
// @ts-expect-error - Type 'undefined' is not assignable to type 'string'. process.env
101102
webServer: {
102103
command: process.env.PAGE ? `npm run watch -- --page ${process.env.PAGE}` : 'npm run serve',
@@ -107,5 +108,6 @@ export default defineConfig({
107108
use: {
108109
actionTimeout: 5000,
109110
trace: 'on-first-retry',
111+
video: { mode: 'on-first-retry' },
110112
},
111113
});

0 commit comments

Comments
 (0)