Repository navigation
[2.1] Fixes #37707: Fix ontology canvas Playwright failures in the nightly AUT - #37709
Conversation
Cherry-pick of the canvas fixes from #37708 (the OntologyRules changes target #37637, which 2.1 does not have). - OntologyNativeRelations placement: pick the double-click point clear of the 40vw drawer it opens, which otherwise pans the new node into view. - OntologyStudioFlows flow 3: close the new concept's inspector so the narrowed AI-mode canvas has an empty point to double-click.
❌ 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 🟡 Medium riskChanges Playwright canvas targeting and inspector sequencing, so incorrect layout assumptions could make ontology tests interact with unintended canvas areas. Cherry-picks the 2.1 ontology canvas Playwright fixes from #37708: 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 #37707
Cherry-pick of the canvas fixes from #37708 for 2.1. Two ontology specs fail every retry in the 2.1 nightly AUT (run 43339525875):
OntologyNativeRelationsplacement:findEmptyCanvasPointpicked the far-right point, where the 40vw concept drawer opens (ADR:2026-11-12-ontology-studio-drawers-are-40vw-with-a-420px-floor).revealHiddenNodethen panned the new node into view, 741px away. Adds an opt-inbesideDraweroption that keeps the point out of the drawer's area. Only this test uses it.OntologyStudioFlowsflow 3 (AI mode): closes the first concept's inspector before the double-click. With the Collate AI sidebar it left ~400px of canvas and no point 160px from a node.These pass in OM CI because the Collate layout around the Studio differs (sidebars, nav). The viewport is 1280×720 in both.
Type of change:
High-level design:
N/A — small change.
Tests:
Test-only change.
yarn lint:playwright: 0 errors.tsc -p playwright/tsconfig.json: no errors in the changed files.--retries=0. On main, all 6 passed; the 2 changes here are the same code:OntologyNativeRelationsplacementOntologyStudioFlowsflow 3 (classic, AI)Checklist:
The
OntologyRuleslane 7 and 9 changes in #37708 are left out: they follow #37637, which is not on 2.1, and those lanes pass on 2.1.🤖 Generated with Claude Code