openpencil/packages/core/tests/editor
Danila Poyarkov b7126322eb
fix(core): show imported page backgrounds and stop fixed text collapsing
Three defects a confidential Figma file surfaced, each reproduced by a
test that fails without the change.

A page's background lived only in viewport state, so an imported canvas
colour never reached the canvas and an edit was lost on the next page
switch or save. It is read from and written to the page's paints, which
the Figma API and export already carry.

Fixed-size text in a Hug container reported no intrinsic cross-axis
size, so a stretched label collapsed and clipped beside smaller
siblings. Yoga now measures it.

Populating a page resynchronised an instance whose text the file had
already resolved, replacing it with the component's default.

Co-authored-by: Victor Wads <victor@wads.dev>
2026-10-02 12:10:06 +04:00
..
clipboard test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
components test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
graph test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
history test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
layout feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
pages test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
selection test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
structure test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
undo test(core): move the fig round-trip suite home, and stop test imports drilling 2026-10-01 14:11:53 +04:00
variables feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
effects-and-resize.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
frame-presets.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
guides.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
navigation-lifecycle.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
node-preview.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
nudge.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
opacity.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
page-backgrounds.test.ts fix(core): show imported page backgrounds and stop fixed text collapsing 2026-10-02 12:10:06 +04:00
preview-events.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
text-auto-resize.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
vectorize.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
view-state.test.ts test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
viewport.test.ts fix: zoom in place, shape cursor names, and align context menu items (#818) 2026-10-01 21:34:36 +04:00