Repository navigation
fix(playwright): assert nested column description on the cell, not the deferred previewer (backport 2.1 #37670) - #37671
Conversation
…e deferred previewer Since #36950 TableDescription renders a plain-text placeholder until the cell nears the viewport. A row that starts with no description mounts that placeholder only after the save, and when the page is left scrolled above the row the previewer (and its viewer-container) never mounts. (cherry picked from commit 14a2769)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟢 Low riskThe two Playwright assertions now target the description cell, changing only test observation and leaving application runtime behavior unchanged. Test-only fix in VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes
Flow/NestedChildrenUpdates.spec.ts› Topic › Level 1 Nested Columns › should update nested column description immediately without page refresh. It failed on both attempts in Postgresql PR Playwright E2E run 43197108715 (shard chromium-28,main@94e56a935f):The save works. The PATCH returns 200, and the error-context snapshot shows the row's description cell containing "Updated customer name field description". The text is a plain
genericnode, though, not theparagraphinsideviewer-containerthat the rows that already had descriptions render.Root cause. Since #36950,
TableDescriptionwraps the description inDeferredWidget. Until the cell nears the viewport, it renders a plain-text placeholder and does not mountRichTextEditorPreviewerNew, the component that ownsviewer-container. The Level 1 row starts with No Description, so itsDeferredWidgetmounts for the first time after the save. In the trace, the page behind the closing modal is scrolled to the top, and thename…row sits just below the fold. The intersection never fires, the placeholder stays, andviewer-containernever exists. The Level 2 test passes because its row stays in view after the two expands. Whether this test fails depends on where the page ends up scrolled.The deferred placeholder is intended (#36950 added it to stop main-thread blocking on column tables), so this is a test bug.
Fix. Both description tests now assert on the cell's
descriptiontestid. That element contains the text whether or not the editor has mounted.updateDescriptionForChildrenalready makes the same check (playwright/utils/entity.ts). No other spec assertsviewer-containerinside a row.Type of change:
High-level design:
N/A, a test-only change in one spec.
Tests:
Unit tests
Not applicable, Playwright only.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Flow/NestedChildrenUpdates.spec.ts, the two description assertions only.2.1UI through Vite, against a local 2.1.0 backend),--project=chromium --no-deps --retries=0 --workers=2: 36 passed, 0 failed, 0 flaky (2.0m), includingTopic › Level 1 › should update nested column description, the test that failed in CI.Result (HTML report screenshot): attach
nested-children-2.1-report.pngChecklist:
Backport of #37670 to 2.1. The same 2-line spec fix, cherry-picked cleanly. 2.1 has both #36950 and the identical spec.
🤖 Generated with Claude Code