Skip to content

doc: Add --ui mode note to browser integration test Readme #13066

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

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
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
12 changes: 12 additions & 0 deletions dev-packages/browser-integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,15 @@ occur while writing tests for Sentry Browser SDK.
- If a `subject.js` is defined for the test case.
- If either of `init.js` or `subject.js` contain non-browser code.
- If the webpack configuration is valid.

- #### Debugging Tests

To debug one or multiple test scenarios, you can use playwright's UI mode. This opens a simulated browser window with
console logs, a timeline of the page and how it was rendered, a list of steps within the test and filtering
capabilities to run the specific test. This is really helpful to understand what happened during the test or for
example when a timeout occurred.

To use UI mode, simply call `yarn test --ui` and filter on the test in the UI.

Note: passing [the `-g` flag](#running-tests-locally) along with the `--ui` command doesn't give you an advantage as
you have to filter on the test again in the UI.
Loading