Skip to content

Commit

Permalink
Add platform agnostic ctrl-meta modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbissemattsson committed Nov 14, 2024
1 parent 01f9cff commit aea590f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/supersearch/e2e/supersearch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test, expect } from '@playwright/test';

import { test, expect, isMac } from '@playwright/test';
test.beforeEach(async ({ page }) => {
await page.goto('/');
});
Expand Down Expand Up @@ -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'
);
Expand Down

0 comments on commit aea590f

Please sign in to comment.