diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5fba89b..29e5d04 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -36,6 +36,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} with: name: playwright-report path: playwright-report/ diff --git a/playwright.config.ts b/playwright.config.ts index a3cc977..5fc02bf 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -30,9 +30,10 @@ export default defineConfig({ colorScheme: 'dark', /* Base URL to use in actions like `await page.goto('/')`. */ baseURL: 'http://localhost:3000', - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', + /* Only keep screenshot when failure */ + screenshot: 'only-on-failure', }, /* Configure projects for major browsers */