Skip to content

fix(playwright): assert nested column description on the cell, not the deferred previewer (backport 2.1 #37670) - #37671

Merged
harsh-vador merged 2 commits into
2.1from
fix/nested-children-deferred-description-2.1
Nov 12, 2026
Merged

harsh-vador merged 2 commits into
2.1from
fix/nested-children-deferred-description-2.1

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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):

Error: expect(locator).toContainText(expected) failed
Locator: locator('[data-row-key="…default….name…"]').getByTestId('viewer-container')
Expected substring: "Updated customer name field description"
Error: element(s) not found
  at NestedChildrenUpdates.spec.ts:85

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 generic node, though, not the paragraph inside viewer-container that the rows that already had descriptions render.

Root cause. Since #36950, TableDescription wraps the description in DeferredWidget. Until the cell nears the viewport, it renders a plain-text placeholder and does not mount RichTextEditorPreviewerNew, the component that owns viewer-container. The Level 1 row starts with No Description, so its DeferredWidget mounts for the first time after the save. In the trace, the page behind the closing modal is scrolled to the top, and the name… row sits just below the fold. The intersection never fires, the placeholder stays, and viewer-container never 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 description testid. That element contains the text whether or not the editor has mounted. updateDescriptionForChildren already makes the same check (playwright/utils/entity.ts). No other spec asserts viewer-container inside a row.

nested-children-2 1-report

Type of change:

  • Bug fix

High-level design:

N/A, a test-only change in one spec.

Tests:

Unit tests

Not applicable, Playwright only.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Changed: playwright/e2e/Flow/NestedChildrenUpdates.spec.ts, the two description assertions only.
  • Static checks: eslint and prettier are clean on the file.
  • Local run of the full spec on this branch (2.1 UI 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), including Topic › Level 1 › should update nested column description, the test that failed in CI.

Result (HTML report screenshot): attach nested-children-2.1-report.png

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.

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

…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)
@harsh-vador
harsh-vador requested a review from a team as a code owner November 12, 2026 11:21
@harsh-vador harsh-vador added the UI UI specific issues label Nov 12, 2026
@harsh-vador
harsh-vador requested review from karthicksharan and removed request for a team November 12, 2026 11:21
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Nov 12, 2026
@gitar-bot

gitar-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The two Playwright assertions now target the description cell, changing only test observation and leaving application runtime behavior unchanged.

Test-only fix in playwright/e2e/Flow/NestedChildrenUpdates.spec.ts that asserts nested column descriptions on the cell's description testid instead of the deferred viewer-container, so the assertion passes before the deferred previewer mounts. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador
harsh-vador merged commit 9996db8 into 2.1 Nov 12, 2026
54 of 56 checks passed
@harsh-vador
harsh-vador deleted the fix/nested-children-deferred-description-2.1 branch November 12, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants