Skip to content
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

Fail playwright tests when console errors exists #3345

Merged
merged 33 commits into from
Sep 15, 2024

Conversation

ryanrosello-og
Copy link
Contributor

@ryanrosello-og ryanrosello-og commented Aug 10, 2024

  • Initial run to capture all console errors for whitelisting
  • Added assertion to fail test if it encounters an un-whitelisted error
  • Added a couple of missing awaits

If this gets super annoying, we can disable it via setting
FAIL_ON_CONSOLE_ERRORS to false in playwright.yml, but yeah ideally it'd be good to have a cursory glance at these errors just incase they're legit.

Copy link

qa-wolf bot commented Aug 10, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Aug 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Sep 15, 2024 8:39pm

@ryanrosello-og
Copy link
Contributor Author

Been trying to merge this for last couple of days now, seems every time I pull latest from main bunch of other things break. Going to keep trying till I get all check passing

@Irev-Dev
Copy link
Collaborator

Sorry I forgot about this should have got it merged but not lots of things are failing, probably because there are new error. I can look at getting the list updating and getting it merged.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In the future, consider using the terms "allow list" and "block list" instead of "white list" and "black list".

@Irev-Dev Irev-Dev merged commit 39ce0da into main Sep 15, 2024
24 checks passed
@Irev-Dev Irev-Dev deleted the ryanrosello-og/fail-when-console-errors-exists branch September 15, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants