-
Notifications
You must be signed in to change notification settings - Fork 263
Update playwright.config for Improved Logging and Reduced Retries
#1073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| - name: Upload Playwright HTML report | ||
| if: always() | ||
| if: ${{ !cancelled() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation copied from flexile
|
@slavingia can i get a review? |
playwright.config.ts
Outdated
| 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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| reporter: process.env.CI ? [["list"], ["html"]] : "list", | |
| reporter: [["list"], ["html", { open: process.env.CI ? "never" : "on-failure" }], ["github"], |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


ref #1064
Changes
AI Disclosure
No AI was used for any part of this contribution.
Self Review
All changes have been reviewed and tested by myself.
Live Stream Disclosure
Viewed both live streams of antiwork and guidelines to follow