Repository navigation
test: run the zoom and fit browser tests without a backend - #491
Merged
Merged
Conversation
[Low impact] The PR appears safe to merge. SummaryMoves the zoom and fit browser tests onto a shared fixture that mounts the real
No actionable issues found. Tests were not run. Reviews (2) · Last reviewed commit: "test: run the zoom and fit browser tests..." · Reviewed by Greptile |
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
from
November 10, 2026 09:29
32977a8 to
ac8c403
Compare
kgoedecke
force-pushed
the
kgoedecke/browser-tests-without-server
branch
from
November 10, 2026 09:29
63aa5b8 to
5639361
Compare
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
from
November 10, 2026 09:38
ac8c403 to
b6a1058
Compare
kgoedecke
force-pushed
the
kgoedecke/browser-tests-without-server
branch
2 times, most recently
from
November 10, 2026 09:40
e61331c to
76be192
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/browser-tests-without-server
branch
from
November 10, 2026 10:27
76be192 to
dbc029c
Compare
kgoedecke
force-pushed
the
kgoedecke/built-test-fixtures
branch
2 times, most recently
from
November 10, 2026 10:34
67bc94f to
f6b144c
Compare
kgoedecke
force-pushed
the
kgoedecke/browser-tests-without-server
branch
from
November 10, 2026 10:34
dbc029c to
ee519fe
Compare
The Zoom tool and zoom-to-selection tests started a real server, signed a person up and created a canvas, to test what the page does with keys, the pointer and its panels. They now mount the real CanvasPage from a fixture (tests/fixtures/canvasPage.html through tests/canvasPageFixture.ts): the room's socket is stubbed, the session and the API are answered by the test, and the canvas is handed to the store as the room would have sent it. The assertions are unchanged. The page controls test keeps its server. Its subject is the server's side of the page list, which is the room's broadcasts racing the HTTP responses, the names the server gives pages, and undo against what it stored. The sign-up form test already ran from a fixture. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kgoedecke
force-pushed
the
kgoedecke/browser-tests-without-server
branch
from
November 10, 2026 10:41
ee519fe to
0cf9276
Compare
kgoedecke
changed the base branch from
kgoedecke/built-test-fixtures
to
main
November 10, 2026 10:41
Collaborator
Author
kgoedecke
added a commit
that referenced
this pull request
Nov 16, 2026
* fix(components): queue a standalone main's frame rename with its others The companion frame write now goes through renameFrame's per-frame queue with no undo step, so overlapping failed saves roll back to the last saved name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(components): name an instance's layer from its Layers row, as Figma does A double-click on an instance's row now names that layer alone. The name is a data-doop-name the instance keeps as an override, so it stays linked and the name survives changes to the main; an unnamed instance still shows the component's name. The main's row keeps renaming the component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): show the component's name on an instance that only inherits a layer name An instance inherits the data-doop-name its main carries, so a main named as a layer before it became a component made every unnamed instance show that stale name. A name now counts as the instance's own only when it differs from the main's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): read an instance's own name from its saved overrides Comparing with the main's layer name hid an instance's own name once the main took the same one. The Layers tree now asks the instance root's overrides whether they name it, which is what the server keeps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(components): find an instance's own name under its component's root key A nested instance's part attribute names its place in the outer component, which need not be its own root's key, so the name override is now looked up under the root key read from the instance's component template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2254225215628be63847b1a57baae8109a0d5891)
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 built fixtures.
Why
zoomToolBrowserandfitSelectionBrowsereach started a real server, signed a user up and created a canvas to test things that happen in the browser.What changes
CanvasPagefrom a new fixture,tests/fixtures/canvasPage.html, throughtests/canvasPageFixture.ts: the socket is stubbed and the session and API are answered by the test. Assertions are unchanged; only navigation and setup differ.pageControlsBrowserkeeps its server on purpose: its subject is room broadcasts racing HTTP responses, the names the server gives pages, and undo against stored pages.Measurements (two-CPU Linux container)
zoomToolBrowser: 8.5s to 1.2s.fitSelectionBrowser: 11.0s to 3.4s.🤖 Generated with Claude Code