We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2488e52 commit a1de0f6Copy full SHA for a1de0f6
1 file changed
tests/utils.ts
@@ -136,8 +136,8 @@ export async function pasteInMonaco(
136
await locator.click();
137
138
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
+ if (browserName !== 'firefox') {
+ // Chromium on mac and webkit on any OS don't seem to paste w/ the keyboard shortcut
141
await locator.locator('textarea').evaluate(async (element, evalText) => {
142
const clipboardData = new DataTransfer();
143
clipboardData.setData('text/plain', evalText);
0 commit comments