Repository navigation
Fixes #35818: Close the Ontology import/export dialog with its Close button in OntologyNativeStudio spec - #35819
Conversation
…button OntologyNativeStudio clicked a Cancel button the dialog never had, so it timed out on every run and has failed every merge-queue Playwright run on top of #35812 and the nightly AUT.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
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 · The Playwright spec now clicks the dialog’s existing Close control and checks dismissal; this narrowly fixes test coverage without changing application behavior. Replaces the nonexistent Cancel button in the Ontology import/export dialog spec with the dialog's Close button and asserts the dialog closes, unblocking the merge queue. No issues found. 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 #35818
Unblocks the merge queue: every Playwright merge-group run on top of
adb1d317(#35812) fails on this spec.RCA
OntologyNativeStudio.spec.ts› authors a native model through the shared View, Edit, and Query shell times out on all 3 attempts at line 568, waiting forgetByRole('dialog').getByRole('button', { name: 'Cancel' }).OntologyReleaseExportModalnever renders. The dialog only has the headerCloseButton(aria-label="Close") and, on the export tab, an Export footer button. Every step before line 568 passes.playwrightcheck was skipped), so the spec ran for the first time after it landed.adb1d317.Fix
Click the dialog's Close button and assert the dialog is gone. This is the control a user actually has, and the spec now proves the dialog closes instead of ending on a click.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Not applicable (test-only change).
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/OntologyNativeStudio.spec.tsThe spec needs the #35812 backend, so it wasn't run locally; the merge queue runs it. The locator matches
CloseButton'saria-label(label.close→ "Close"), the only button with that name in the dialog.Manual testing performed
N/A — test-only change.
UI screen recording:
Not applicable — test-only fix.
Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code


Confidence Score: 5/5
This test-only fix appears safe to merge.Summary
Updates
OntologyNativeStudio.spec.tsto click the import/export dialog’s actualClosebutton.Reviews (1) · Last reviewed commit: "Fixes #35818: close the Ontology import/..." · Reviewed by Greptile