Skip to content

Commit a1de0f6

Browse files
authored
test: Fix e2e paste in chromium on mac (#1516)
1 parent 2488e52 commit a1de0f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export async function pasteInMonaco(
136136
await locator.click();
137137

138138
const browserName = locator.page().context().browser()?.browserType().name();
139-
if (browserName === 'webkit') {
140-
// Webkit doesn't seem to paste w/ the keyboard shortcut in headless mode
139+
if (browserName !== 'firefox') {
140+
// Chromium on mac and webkit on any OS don't seem to paste w/ the keyboard shortcut
141141
await locator.locator('textarea').evaluate(async (element, evalText) => {
142142
const clipboardData = new DataTransfer();
143143
clipboardData.setData('text/plain', evalText);

0 commit comments

Comments
 (0)