File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,19 @@ Testing Library Extension for Chrome DevTools Recorder
24
24
## Inspiration
25
25
26
26
- [ 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) ` |
You can’t perform that action at this time.
0 commit comments