open-design/e2e
Sid 8bcd96f5e5
fix(frames): resolve relative screen= against embedder URL (#2316)
Shared device frames serve at /frames/<name>.html and previously
assigned the raw ?screen= value to the inner iframe.src. A
project-relative value like screen=screens/foo.html resolved against
/frames/, producing /frames/screens/foo.html (404), instead of the
embedding project's /api/projects/:id/raw/screens/foo.html.

The five frame HTML files now resolve relative ?screen= values
against document.referrer when present (the embedding project
preview), falling back to location.href so standalone /frames/*
loads keep working. Absolute and root-relative paths are passed
through unchanged.

Adds an e2e Vitest spec that evaluates each frame's inline <script>
in a Node vm and asserts iframe.src under five scenarios per file
(25 cases total): project-relative against referrer, root-relative
pass-through, absolute pass-through, empty referrer fallback, and
missing ?screen= no-op.

Fixes #2234
2026-05-20 10:03:01 +08:00
..
lib chore: pin dependency versions and harden CI caches (#2189) 2026-05-19 13:58:27 +08:00
resources test(e2e): align entry coverage with redesigned flows (#2101) 2026-05-19 11:26:40 +08:00
scripts test: harden e2e smoke and release reports (#1140) 2026-05-11 13:11:16 +08:00
specs Add desktop updater UI flow (#2270) 2026-05-19 21:36:51 +08:00
tests fix(frames): resolve relative screen= against embedder URL (#2316) 2026-05-20 10:03:01 +08:00
ui test(e2e): harden connectors auth cancel recovery (#2176) 2026-05-19 18:11:32 +08:00
AGENTS.md test: harden e2e smoke and release reports (#1140) 2026-05-11 13:11:16 +08:00
package.json chore: pin dependency versions and harden CI caches (#2189) 2026-05-19 13:58:27 +08:00
playwright.config.ts test: stabilize extended Playwright coverage (#1341) 2026-05-12 15:11:34 +08:00
tsconfig.json test(e2e): gate beta packaged runtime (#637) 2026-05-06 17:44:29 +08:00
vitest.config.ts test(e2e): gate beta packaged runtime (#637) 2026-05-06 17:44:29 +08:00