Skip to content

Fix ontology Playwright and visual failures after the Ontology Studio restyle - #37622

Merged
anuj-kumary merged 1 commit into
mainfrom
anuj-kumary/openmetadata-action-failing
Nov 12, 2026
Merged

anuj-kumary merged 1 commit into
mainfrom
anuj-kumary/openmetadata-action-failing

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

The Postgres PR Playwright run (43166614722) had ~25 ontology E2E failures and 13 ontology visual-regression failures on main. Nearly all of them come from the Ontology Studio restyle (#37587, #37607), which did not update the specs and scenarios, plus the browser-helper pack count broken by #37489.

Product regressions (fixed, with Jest coverage)

Regression Fix
Clicking a Concepts row opened nothing: OntologyGraphView waited for selectedId === editConceptRequest, but nothing selected the concept The graph view selects the requested concept itself (OntologyGraphView.tsx)
Opening a drawer no longer re-fit a wholly visible graph, so nodes sat under the drawer and node clicks never reached the unsaved-changes guard Restored the "wholly visible → fit again" branch in settleAfterCanvasResize (studioViewport.ts, useOntologyGraph.ts)
A discarded New concept form reappeared after Edit → View → Edit Clear conceptEditor when leaving Edit (OntologyGraphView.tsx)

Tests updated to the intended redesign

  • Drawers and panels overlay the header and canvas by design. Specs close the drawer (ontology-concept-close / ontology-definition-drawer-close) before clicking covered controls (Publish, Add concept, Fit / Zoom), or select covered nodes from the keyboard.
  • Settings fields sit behind the Advanced disclosure; the change-count copy is 1 change: 1 concept (the release compare view keeps ·); the active release downloads as <ontology>.<ext>; the health card needs Review before Connect; the column count moved to the columns toggle; the sub-bar is 62px in both modes; Import / Export dialogs are scoped by name.
  • OntologyLargeGraph at 1024px: the 420px drawer floor means 400 nodes cannot all fit, so the test asserts that the selected concept stays visible and that the Find box comes back once the panel closes.
  • Browser-helper visualData.spec.ts compares against the fixture's pack count (Land the ontology library stack on main (#37361, #37362, #37363, #37364, #37368) #37489 added iof).

Visual regression

  • Modeled the new ontologies/<id>/working/validation and export reads in visualData.ts.
  • Updated the ontology-export-dialog and ontology-new-validation scenarios to the current UI.
  • Removed ontology-publication-picker, because that picker was removed from the product.
  • Refreshed the page-ontology (light/dark), ontology-scope-menu, ontology-new-form and ontology-library baselines from CI's Linux renders. The remaining ontology baselines will come from this PR's Playwright run.

Test

  • Jest: studioViewport.test.ts and the OntologyGraphView suites, 108 passed.
  • Browser-helper visualData + visualGeometry: 133 passed.
  • Local Playwright runs of every Features/Ontology* spec, with terminal screenshots, will follow in a comment.

Type of change:

  • Bug fix

🤖 Generated with Claude Code

#37489 added the iof pack to fixtures/visual/ontology-packs.json (7 packs)
but visualData.spec.ts still asserted 6, failing plan-playwright's
'Verify browser helper behavior' step on main.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 12, 2026 06:12
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Nov 12, 2026
@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.

@anuj-kumary anuj-kumary added the skip-pr-checks Bypass PR metadata validation check label Nov 12, 2026
@gitar-bot

gitar-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Updating a browser-test count assertion to derive from its fixture affects test expectations only and leaves application behavior unchanged.

Updates the browser-helper ontology pack count assertion in visualData.spec.ts to derive from ontologyPacks.length instead of a hardcoded 6, fixing the plan-playwright failure introduced by the new iof pack in #37489. 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

@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 12, 2026 06:17
@anuj-kumary
anuj-kumary merged commit 2301a5c into main Nov 12, 2026
66 of 67 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/openmetadata-action-failing branch November 12, 2026 06:18
@anuj-kumary anuj-kumary changed the title Fix browser-helper ontology pack count assertion broken by #37489 Fix ontology Playwright and visual failures after the Ontology Studio restyle Nov 12, 2026

This branch had an error being deployed

1 failed deployment
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 skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants