Skip to content

Commit 7e59b5a

Browse files
committed
Explain navigate step limitation
1 parent 150cd09 commit 7e59b5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ Testing Library Extension for Chrome DevTools Recorder
3838
| `doubleClick` | `await userEvent.dblClick(element)` |
3939
| `keyDown` | `await userEvent.keyboard("{Key>}")` |
4040
| `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")` |
4242
| `waitForElement` | `await waitFor(() => element)` |
4343
| `waitForExpression` | `await waitFor(() => expression)` |
4444

45+
\* Only one `navigate` step is allowed per test because `jest-environment-url` must load pages since `jsdom` does not support navigation.
46+
4547
## Inspiration
4648

4749
- [Puppeteer Replay examples](https://github.com/puppeteer/replay/tree/main/examples)

0 commit comments

Comments
 (0)