mirror of
https://github.com/penpot/penpot.git
synced 2026-11-27 05:10:32 +00:00
This PR contains two fixes. The first is that some of the render-wasm specs fail on macOS because the `devices["Desktop Chrome"]` playwright preset uses a Windows user agent by default. So penpot registers ctrl shortcuts, but Playwright sends Meta via the ControlOrMeta command if the tests are running on macOS. The `platform === 'darwin'` check didn't work due to a typo (I believe it should be `platform() == 'darwin'`. But removing the preset also fixes it by letting the browser send its own user agent, which matches the host OS. The second is that the "Renders background blur under strokes on rects, paths and texts" spec failed because this.pageName matched multiple elements, and playwright complained in strict mode. This fixes it by using .first() in a few places and making waitForWebSocketReadiness match the exact name. It also means we can remove the workaround in rename-page.spec.js. AI-assisted-by: claude-opus-5-5