Skip to content

CI: Run Playwright tests against Svelte app#13373

Closed
Turbo87 wants to merge 3 commits intorust-lang:mainfrom
Turbo87:sv-percy-test
Closed

CI: Run Playwright tests against Svelte app#13373
Turbo87 wants to merge 3 commits intorust-lang:mainfrom
Turbo87:sv-percy-test

Conversation

@Turbo87
Copy link
Copy Markdown
Member

@Turbo87 Turbo87 commented Apr 8, 2026

This should allow us to run the Percy visual regression checks against the Svelte app, as a final check whether we have missed anything significant in our porting process.

Related

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-svelte labels Apr 8, 2026
@Turbo87
Copy link
Copy Markdown
Member Author

Turbo87 commented Apr 8, 2026

Percy is out of snapshots until Saturday... 🙈

on the bright side, the Playwright tests in general are passing already 🎉

@Turbo87 Turbo87 force-pushed the sv-percy-test branch 2 times, most recently from ac6f68f to d789303 Compare April 13, 2026 09:43
@Turbo87 Turbo87 force-pushed the sv-percy-test branch 2 times, most recently from 7306eeb to 7fabfa0 Compare April 13, 2026 15:09
@Turbo87 Turbo87 force-pushed the sv-percy-test branch 3 times, most recently from 0949351 to ed4b7e9 Compare April 28, 2026 12:26
@Turbo87 Turbo87 force-pushed the sv-percy-test branch 2 times, most recently from cce860d to 40ff0cb Compare April 29, 2026 12:22
Turbo87 added 2 commits April 30, 2026 12:05
Without this, requests still in flight (or fired by late-running
hydration code) bypass the mocks once `worker.disable()` removes the
interception and hit the real network instead, surfacing as
`[404]` log lines from the SvelteKit `vite preview` web server.
This should allow us to run the Percy visual regression checks against the Svelte app, as a final check whether we have missed anything significant in our porting process.
Calling `worker.disable()` per test sends `Fetch.disable` to the
still-alive page, opening a small window in which late-firing
hydration requests bypass the mocks and hit the real network. The
context is torn down between tests anyway, which removes the MSW
route in a single CDP command without that window.

Replaces the previous "close pages before disabling MSW" workaround,
which prevented the leak on macOS but still left some on Linux CI.
@Turbo87
Copy link
Copy Markdown
Member Author

Turbo87 commented May 1, 2026

closing in favor of #13542

@Turbo87 Turbo87 closed this May 1, 2026
@Turbo87 Turbo87 deleted the sv-percy-test branch May 2, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-frontend 🐹 A-svelte C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants