Skip to content

Commit 65c1f6c

Browse files
authored
test: update snapshots (#1261)
1 parent 543ecb0 commit 65c1f6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/pointer/click.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ test('double click with prevent compatibility', async () => {
6262
await user.pointer({keys: '[MouseLeft][MouseLeft]', target: element})
6363

6464
expect(getClickEventsSnapshot()).toMatchInlineSnapshot(`
65-
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
66-
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
65+
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
66+
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
6767
click - button=0; buttons=0; detail=1
68-
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
69-
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
68+
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
69+
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
7070
click - button=0; buttons=0; detail=2
7171
dblclick - button=0; buttons=0; detail=2
7272
`)
@@ -398,8 +398,8 @@ test('preventDefault on pointer down prevents compatibility events works with po
398398
await user.pointer({keys: '[MouseLeft]', target: element})
399399

400400
expect(getClickEventsSnapshot()).toMatchInlineSnapshot(`
401-
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
402-
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
401+
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
402+
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
403403
click - button=0; buttons=0; detail=1
404404
`)
405405
expect(getEvents('click')).toHaveLength(1)

0 commit comments

Comments
 (0)