Skip to content

Commit 5c03ac5

Browse files
authored
doc: Add --ui mode note to browser integration test Readme (#13066)
Figured having this written down might prove useful in the future :)
1 parent e38f89d commit 5c03ac5

File tree

1 file changed

+12
-0
lines changed
  • dev-packages/browser-integration-tests

1 file changed

+12
-0
lines changed

dev-packages/browser-integration-tests/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,15 @@ occur while writing tests for Sentry Browser SDK.
100100
- If a `subject.js` is defined for the test case.
101101
- If either of `init.js` or `subject.js` contain non-browser code.
102102
- If the webpack configuration is valid.
103+
104+
- #### Debugging Tests
105+
106+
To debug one or multiple test scenarios, you can use playwright's UI mode. This opens a simulated browser window with
107+
console logs, a timeline of the page and how it was rendered, a list of steps within the test and filtering
108+
capabilities to run the specific test. This is really helpful to understand what happened during the test or for
109+
example when a timeout occurred.
110+
111+
To use UI mode, simply call `yarn test --ui` and filter on the test in the UI.
112+
113+
Note: passing [the `-g` flag](#running-tests-locally) along with the `--ui` command doesn't give you an advantage as
114+
you have to filter on the test again in the UI.

0 commit comments

Comments
 (0)