Repository navigation
test(playwright): poll the glossary description viewer instead of snapshotting it (1.13) - #34254
Conversation
…pshotting it (1.13) verifyGlossaryDetails read the description with page.textContent(), which waits for [data-testid="viewer-container"] to exist but not for its text. The container is rendered synchronously by RichTextEditorPreviewNew while its content comes from a lazily-mounted BlockEditor, so a cold read lands on the empty shell and the assertion sees "". Postgres Playwright run 36651541894 failed all three attempts of "Glossary & terms creation for reviewer as user" this way; the MySQL run on the same SHA passed, and the head commit was backend-only. Backport of the helper fix already on main (b6030a4, #32591) — one change covers the three specs that call verifyGlossaryDetails. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved🟢 Low risk · A single Playwright helper now polls for glossary description text during hydration. Replaces a synchronous OptionsDisplay: compact → Counting what did not apply, without listing it. 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
verifyGlossaryDetailsread the glossary description withpage.textContent(), which waits for[data-testid="viewer-container"]to exist but not for its text.RichTextEditorPreviewNewrenders that container synchronously while its content comes from a lazily-mountedBlockEditor, so a cold read lands on the empty shell and the assertion sees"".Replaced with
expect(...).toContainText(...), which polls and survives the hydration gap.This is a straight backport of the helper fix already on
main(b6030a4, #32591) — the added block is byte-identical to main's. 1.13 never got it, so the race is still live there.Evidence
Postgres Playwright run 36651541894 failed all three attempts of
Glossary & terms creation for reviewer as user:Not a regression from the head commit —
368cf15etouches onlyTableRepository.javaandTableResourceIT.java, and the MySQL run on the same SHA passed. The runner was just slow enough to land inside the race window.One helper change covers the three specs that call
verifyGlossaryDetails(Glossary.spec.ts126 / 196 / 414).Type of change
Checklist
<type>(<optional scope>): <description>Test-only change; the Playwright suites on this PR are the verification.
🤖 Generated with Claude Code