File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ Testing Library Extension for Chrome DevTools Recorder
38
38
| ` doubleClick ` | ` await userEvent.dblClick(element) ` |
39
39
| ` keyDown ` | ` await userEvent.keyboard("{Key>}") ` |
40
40
| ` keyUp ` | ` await userEvent.keyboard("{/Key}") ` |
41
- | ` navigate ` | ` expect(location.href).toBe("https://example.com/") ` ` expect(document.title).toBe("Example Domain") ` |
41
+ | ` navigate ` \* | ` expect(location.href).toBe("https://example.com/") ` ` expect(document.title).toBe("Example Domain") ` |
42
42
| ` waitForElement ` | ` await waitFor(() => element) ` |
43
43
| ` waitForExpression ` | ` await waitFor(() => expression) ` |
44
44
45
+ \* Only one ` navigate ` step is allowed per test because ` jest-environment-url ` must load pages since ` jsdom ` does not support navigation.
46
+
45
47
## Inspiration
46
48
47
49
- [ Puppeteer Replay examples] ( https://github.com/puppeteer/replay/tree/main/examples )
You can’t perform that action at this time.
0 commit comments