Skip to content

Commit efe87aa

Browse files
committed
fix(type): improve accurracy, remove allAtOnce, and use click
1 parent 106072a commit efe87aa

File tree

4 files changed

+718
-247
lines changed

4 files changed

+718
-247
lines changed

src/user-event/__tests__/clear.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ test('clears text', async () => {
88
expect(getEventSnapshot()).toMatchInlineSnapshot(`
99
Events fired on: input[value=""]
1010
11+
input[value="hello"] - pointerover
12+
input[value="hello"] - pointerenter
13+
input[value="hello"] - mouseover: Left (0)
14+
input[value="hello"] - mouseenter: Left (0)
15+
input[value="hello"] - pointermove
16+
input[value="hello"] - mousemove: Left (0)
17+
input[value="hello"] - pointerdown
18+
input[value="hello"] - mousedown: Left (0)
1119
input[value="hello"] - focus
20+
input[value="hello"] - focusin
21+
input[value="hello"] - pointerup
22+
input[value="hello"] - mouseup: Left (0)
23+
input[value="hello"] - click: Left (0)
1224
input[value="hello"] - select
1325
input[value="hello"] - keydown: Delete (46)
1426
input[value=""] - input
@@ -39,7 +51,19 @@ test('does not clear text on readonly inputs', async () => {
3951
expect(getEventSnapshot()).toMatchInlineSnapshot(`
4052
Events fired on: input[value="hello"]
4153
54+
input[value="hello"] - pointerover
55+
input[value="hello"] - pointerenter
56+
input[value="hello"] - mouseover: Left (0)
57+
input[value="hello"] - mouseenter: Left (0)
58+
input[value="hello"] - pointermove
59+
input[value="hello"] - mousemove: Left (0)
60+
input[value="hello"] - pointerdown
61+
input[value="hello"] - mousedown: Left (0)
4262
input[value="hello"] - focus
63+
input[value="hello"] - focusin
64+
input[value="hello"] - pointerup
65+
input[value="hello"] - mouseup: Left (0)
66+
input[value="hello"] - click: Left (0)
4367
input[value="hello"] - select
4468
input[value="hello"] - keydown: Delete (46)
4569
input[value="hello"] - keyup: Delete (46)

0 commit comments

Comments
 (0)