Repository navigation
test: serve the browser fixtures from a production build - #490
Merged
Merged
Conversation
[Medium impact] The PR appears safe to merge. SummaryBrowser tests now load one production build instead of using Vite’s dev server.
No actionable issues were found. Tests were not run. Reviews (2) · Last reviewed commit: "test: serve the browser fixtures from a ..." · Reviewed by Greptile |
kgoedecke
force-pushed
the
kgoedecke/split-drawing-tests
branch
from
November 10, 2026 09:29
9919313 to
950c3d8
Compare
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
2 times, most recently
from
November 10, 2026 09:38
ac8c403 to
b6a1058
Compare
kgoedecke
force-pushed
the
kgoedecke/split-drawing-tests
branch
2 times, most recently
from
November 10, 2026 09:40
1f0b96f to
231dcf9
Compare
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
from
November 10, 2026 09:40
b6a1058 to
4eddddd
Compare
kgoedecke
force-pushed
the
kgoedecke/split-drawing-tests
branch
from
November 10, 2026 10:27
231dcf9 to
761cab7
Compare
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
from
November 10, 2026 10:27
4eddddd to
67bc94f
Compare
Every browser test opens its own page, and each load from the Vite dev server fetched several hundred unbundled modules: a second or two on a CI runner, and a stalled load left the dev client polling for a server it thought lost. The run now builds the fixtures and the app once (tests/fixtures.vite.config.ts, its own vite process so NODE_ENV can be production, about a second) into a temp directory and serves it with vite preview. There is one mode, local and CI alike, and no dev server. The three files that put the app in front of a real backend serve the same build with their proxy through serveBuilt(). Two tests leaned on the dev server. The comment pin test now reads the store from the fixture instead of importing /src from the page, and the replay tests match the recorder's built file name and assert that the saved HTML does not carry that exact URL. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
from
November 10, 2026 10:34
67bc94f to
f6b144c
Compare
kgoedecke
changed the base branch from
kgoedecke/split-drawing-tests
to
main
November 10, 2026 10:34
Collaborator
Author
kgoedecke
added a commit
that referenced
this pull request
Nov 16, 2026
* feat(shell): suggest the native app from the browser A computer's browser gets a desktop-app card at the foot of the rail (Download for macOS / Windows / Linux, dismissed for good); an iPhone or iPad gets a bottom sheet pointing at the App Store (snoozed 14 days), on Home and the canvas, held while the onboarding questions are open. Nothing shows inside the desktop app, on Android or on ChromeOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(shell): hold the iOS sheet until onboarding is settled, drop the grab handle useOnboardingAsk now reports `pending` while the account or its answers are loading (a failed check settles as not asked), so the App Store sheet no longer opens, hides under the questionnaire and opens again on a slow connection. The sheet's grab handle implied a swipe the Radix sheet does not have, so it is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1cd31f6a9e32d364510129953ed85db34a9b0a87)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on the drawing test split.
Why
Every browser test loaded its fixture from a Vite dev server: several hundred unbundled modules, a second or two per load on a CI runner. That dev server's live-reload client is also what turned one stalled page load into a 40-test cascade on 9 November.
What changes
tests/globalSetup.tsbuilds every fixture page plusindex.htmlonce per run (tests/fixtures.vite.config.ts) into a temp directory and serves it withvite preview. One mode for local and CI; there is no dev server any more.vite buildprocess, since a production build needsNODE_ENV=productionand vitest has already set it totest.zoomToolBrowser,pageControlsBrowser,fitSelectionBrowser) useserveBuilt(proxy)over the same build.elementCommentPositionBrowserimported/src/lib/store.tsfrom the page (the fixture now exposes the store), andframeReplaymatched the recorder by/dist/recorder.js(it now checks the real request's path, so the assertion is not vacuous).Measurements (two-CPU Linux container)
elementPanelBrowseraloneLimits
.wasmis emitted into the build, but no browser test loads it, so that path is unexercised.🤖 Generated with Claude Code