diff --git a/test/browser/fixtures/user-event/pointer.test.ts b/test/browser/fixtures/user-event/pointer.test.ts index 407f1da6c..82c0f186d 100644 --- a/test/browser/fixtures/user-event/pointer.test.ts +++ b/test/browser/fixtures/user-event/pointer.test.ts @@ -188,13 +188,15 @@ test('clicks with middle button', async ({ expect }) => { const target = page.getByRole('button') await userEvent.pointer([ - { target, button: 'middle', action: 'down' }, + { target, button: 'middle', action: 'click' }, ]) expect(down).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({ button: 1, })) - expect(up).not.toHaveBeenCalled() + expect(up).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({ + button: 1, + })) expect(click).not.toHaveBeenCalled() })