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

Debug mode on playwright not working #367

Open
nsklikas opened this issue Nov 21, 2024 · 3 comments
Open

Debug mode on playwright not working #367

nsklikas opened this issue Nov 21, 2024 · 3 comments
Labels
bug Something isn't working frontend This is a UI issue

Comments

@nsklikas
Copy link
Contributor

When I try to run the playwright e2e tests on debug mode (npx playwright test --debug, this allows you to get a debugger while running the tests), I get an error when trying to match the screenshots:
image
image
image

Not sure if this supposed to not work or if there is a problem with our setup. Is there another way to debug these tests (cc @edlerd). If this is a screenshot limitation, then IMO we should consider dropping them as having a debugger is vital for development.

@nsklikas nsklikas added the bug Something isn't working label Nov 21, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-1221.

This message was autogenerated

@nsklikas nsklikas added the frontend This is a UI issue label Nov 21, 2024
@edlerd
Copy link
Contributor

edlerd commented Nov 26, 2024

I cannot reproduce any error.

What I did:

  1. run ui/tests/scripts/01-start-cluster.sh
  2. run ui/tests/scripts/02-start-ui.sh
  3. run ui/tests/scripts/03-start-oidc-app.sh
  4. run make test-e2e-debug
  5. press play in the ui

Successful result below:

image

@edlerd
Copy link
Contributor

edlerd commented Nov 26, 2024

I just realized you start the tests in a different debug mode. For that you can ignore the screenshots with a flag easily.

npx playwright test --debug --ignore-snapshots

FYI @nsklikas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend This is a UI issue
Projects
None yet
Development

No branches or pull requests

2 participants