Skip to content

Commit 2adcf33

Browse files
committed
Document supported Chrome recorder step types
1 parent bd6597e commit 2adcf33

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,19 @@ Testing Library Extension for Chrome DevTools Recorder
2424
## Inspiration
2525

2626
- [Puppeteer Replay examples](https://github.com/puppeteer/replay/tree/main/examples)
27+
- [Cypress Recorder Extension](https://github.com/cypress-io/cypress-recorder-extension)
28+
29+
## Supported Chrome Recorder Step Types
30+
31+
| Type | Output |
32+
| ------------------- | ---------------------------------------------------------------------------------------------------- |
33+
| `change` | `await userEvent.type(element, "value")` |
34+
| `click` | `await userEvent.click(element)` |
35+
| `click` (right) | `await userEvent.click(element, { buttons: 2 })` |
36+
| `hover` | `await userEvent.hover(element)` |
37+
| `doubleClick` | `await userEvent.dblClick(element)` |
38+
| `keyDown` | `await userEvent.keyboard("{Key>}")` |
39+
| `keyUp` | `await userEvent.keyboard("{/Key}")` |
40+
| `navigate` | `expect(location.href).toBe("https://example.com/")` `expect(document.title).toBe("Example Domain")` |
41+
| `waitForElement` | `await waitFor(() => element)` |
42+
| `waitForExpression` | `await waitFor(() => expression)` |

0 commit comments

Comments
 (0)