test(clipboard): check that the headless clipboard is isolated from the operating system - #42039
test(clipboard): check that the headless clipboard is isolated from the operating system#42039dcrousso wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hi, I'm the Playwright bot and I took a first look at the CI failures here. 🔴 The one failure is this PR's own new test
DetailsCaused by this PR
Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
…he operating system every headless browser keeps the clipboard to itself instead of sharing the clipboard of the operating system, which headless WebKit on macOS started doing in build `2334` add a test that launches two headless browsers and expects each to only read back what it wrote through `navigator.clipboard`, which would not hold if they both used the clipboard of the operating system
653eef2 to
995be21
Compare
Test results for "MCP"7815 passed, 1272 skipped Merge workflow run. |
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"5 flaky51055 passed, 1189 skipped Merge workflow run. |
| it('should isolate the headless clipboard from the operating system', { | ||
| annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13097' }, | ||
| }, async ({ browserType, server, browserName, isMac, isFrozenWebkit }) => { | ||
| it.fixme(browserName === 'webkit' && !isMac, 'Headless WebKit cannot read the clipboard outside of macOS.'); |
There was a problem hiding this comment.
Making a note on this one, should work.
There was a problem hiding this comment.
btw although navigator.clipboard is enabled on playwright WebKit windows it will always fail as it's not actually implemented under the hood so this was kinda already the case (i.e. you'd have to use things like ⌘C/⌘V or document.execCommand("copy"))
im currently working on fixing that :)
every headless browser keeps the clipboard to itself instead of sharing the clipboard of the operating system, which headless WebKit on macOS started doing in build
2334add a test that launches two headless browsers and expects each to only read back what it wrote through
navigator.clipboard, which would not hold if they both used the clipboard of the operating systemfixes #13097