diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9f568d8d..ea900d49c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,6 +50,15 @@ jobs: wallets/metamask/test-results-headless/ if-no-files-found: error + - name: Archive Playwright report + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: playwright-report-headless + path: | + wallets/metamask/playwright-report-headless/ + if-no-files-found: error + test-e2e-headful: name: Run E2E tests (headful) runs-on: ubuntu-latest @@ -86,3 +95,12 @@ jobs: path: | wallets/metamask/test-results-headful/ if-no-files-found: error + + - name: Archive Playwright report + uses: actions/upload-artifact@v3 + if: success() || failure() + with: + name: playwright-report-headful + path: | + wallets/metamask/playwright-report-headful/ + if-no-files-found: error diff --git a/wallets/metamask/playwright.config.ts b/wallets/metamask/playwright.config.ts index e22f8eea5..6d6aba1c8 100644 --- a/wallets/metamask/playwright.config.ts +++ b/wallets/metamask/playwright.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ // Concise 'dot' for CI, default 'html' when running locally. // See https://playwright.dev/docs/test-reporters. - reporter: process.env.CI ? 'dot' : 'html', + reporter: process.env.CI ? [['html', { open: 'never', outputFolder: `playwright-report-${process.env.HEADLESS ? 'headless' : 'headed'}` }]] : 'html', // Shared settings for all the projects below. // See https://playwright.dev/docs/api/class-testoptions.