From aea590f791f968261c06fa380e23b2655a9823ff Mon Sep 17 00:00:00 2001 From: Johan Bisse Mattsson Date: Thu, 14 Nov 2024 15:17:14 +0100 Subject: [PATCH] Add platform agnostic ctrl-meta modifier --- packages/supersearch/e2e/supersearch.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' );