Skip to content

Commit

Permalink
test: Fix e2e paste in chromium on mac (deephaven#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon authored Sep 14, 2023
1 parent 2488e52 commit a1de0f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export async function pasteInMonaco(
await locator.click();

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

0 comments on commit a1de0f6

Please sign in to comment.