Skip to content

Commit

Permalink
test: update snapshots (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche authored Jan 21, 2025
1 parent 543ecb0 commit 65c1f6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/pointer/click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ test('double click with prevent compatibility', async () => {
await user.pointer({keys: '[MouseLeft][MouseLeft]', target: element})

expect(getClickEventsSnapshot()).toMatchInlineSnapshot(`
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
click - button=0; buttons=0; detail=1
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
click - button=0; buttons=0; detail=2
dblclick - button=0; buttons=0; detail=2
`)
Expand Down Expand Up @@ -398,8 +398,8 @@ test('preventDefault on pointer down prevents compatibility events works with po
await user.pointer({keys: '[MouseLeft]', target: element})

expect(getClickEventsSnapshot()).toMatchInlineSnapshot(`
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true
pointerup - pointerId=1; pointerType=mouse; isPrimary=true
pointerdown - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=1
pointerup - pointerId=1; pointerType=mouse; isPrimary=true; button=0; buttons=0
click - button=0; buttons=0; detail=1
`)
expect(getEvents('click')).toHaveLength(1)
Expand Down

0 comments on commit 65c1f6c

Please sign in to comment.