File tree 1 file changed +12
-0
lines changed
dev-packages/browser-integration-tests
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -100,3 +100,15 @@ occur while writing tests for Sentry Browser SDK.
100
100
- If a ` subject.js ` is defined for the test case.
101
101
- If either of ` init.js ` or ` subject.js ` contain non-browser code.
102
102
- 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.
You can’t perform that action at this time.
0 commit comments