diff --git a/packages/supersearch/e2e/supersearch.spec.ts b/packages/supersearch/e2e/supersearch.spec.ts index 0f572e20a..507e86cfb 100644 --- a/packages/supersearch/e2e/supersearch.spec.ts +++ b/packages/supersearch/e2e/supersearch.spec.ts @@ -1,5 +1,4 @@ -import { test, expect } from '@playwright/test'; - +import { test, expect, isMac } from '@playwright/test'; test.beforeEach(async ({ page }) => { await page.goto('/'); }); @@ -35,7 +34,7 @@ test('prevents new line characters (e.g. when pasting multi-lined text', async ( two three`) ); - await page.keyboard.press('Meta+v'); + await page.keyboard.press(`ControlOrMeta+v`); await expect(page.locator('[data-test-id="test1"]').getByRole('textbox').locator('div')).toHaveText( 'One two three' );