Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: ./scripts/e2e.sh

- name: Upload Playwright HTML report
if: always()
if: ${{ !cancelled() }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation copied from flexile

uses: actions/upload-artifact@v4
with:
name: playwright-report
Expand Down
5 changes: 3 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 1,
retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? "100%" : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [["html", { open: process.env.CI ? "never" : "on-failure" }]],
reporter: process.env.CI ? [["list"], ["html"]] : "list",
Copy link
Contributor

@sm17p sm17p Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add github formatter to the CI list? It would be nice to see why the spec failed in PR reviews.

Actually I don't remember if it'd be displayed in Files changed tab but it should show up on actions run and here. We can try once maybe by failing a spec intentionally?

One caveat is there would be a slight increase in CI time, so we'll have to track it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
reporter: process.env.CI ? [["list"], ["html"]] : "list",
reporter: [["list"], ["html", { open: process.env.CI ? "never" : "on-failure" }], ["github"],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sm17p Thanks for the comment, but it seems there’s no change in the report after switching togithub
check here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try by failing a spec?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still doesn’t seem like it’s anything worthwhile here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down