From 65c1f6c87df8b694675a5ebc79779ecf4ff9c020 Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Tue, 21 Jan 2025 18:29:17 +0100 Subject: [PATCH] test: update snapshots (#1261) --- tests/pointer/click.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/pointer/click.ts b/tests/pointer/click.ts index 44f0350a..a169110c 100644 --- a/tests/pointer/click.ts +++ b/tests/pointer/click.ts @@ -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 `) @@ -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)