From af47567f13bd331801f7979ee0f4b33f907c13f4 Mon Sep 17 00:00:00 2001 From: Johan Bisse Mattsson Date: Thu, 12 Dec 2024 13:41:05 +0100 Subject: [PATCH] chore(supersearch): Fix failing test --- packages/supersearch/e2e/supersearch.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/supersearch/e2e/supersearch.spec.ts b/packages/supersearch/e2e/supersearch.spec.ts index dbd1b5eb8..a7ea68077 100644 --- a/packages/supersearch/e2e/supersearch.spec.ts +++ b/packages/supersearch/e2e/supersearch.spec.ts @@ -50,11 +50,7 @@ test('expanded search is closable', async ({ page }) => { 'by pressing the Escape key' ).not.toBeVisible(); await page.locator('[data-test-id="test1"]').getByRole('textbox').locator('div').click(); - await page - .locator('[data-test-id="test1"]') - .getByRole('dialog') - .first() - .click({ position: { x: 0, y: 0 } }); + await page.mouse.click(0, 0); await expect( page.locator('[data-test-id="test1"]').getByRole('dialog').first(), 'by clicking outside'