Repository navigation
Fixes #37007: Align CustomProperties delete and PersonaSettings navigation tests with the current UI - #37008
Conversation
…ation tests with the current UI The delete confirmation names a custom property by its display name since #36808, and the edit step upper-cases that display name, so match the name case-insensitively. The AI-mode Navigation card opens the AI sidebar editor since #36862, so the unsaved-changes tests toggle ai-sidebar-switch-explore.
✅ 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 · Updating Playwright selectors and case-insensitive assertions only aligns tests with the UI; it leaves product runtime behavior unchanged. Realigns the CustomProperties delete assertion to match display-name casing and updates PersonaSettings navigation tests to use the AI sidebar editor ids, both test-only changes. 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 #37007
Nightly Playwright on
main(run 41761758946) failed 43 tests. They fall into two groups, and both are tests that no longer match UI changes merged on Nov 3. These are test-only changes: no product code changes, and the dependency bump in #36876 (the commit that run was on) is not involved.1.
CustomProperties.spec.ts: delete dialog now shows the display name (#36808)getEntityName(selectedProperty), so it now shows the display name.editCreatedPropertysets that display name topropertyName.toUpperCase(), whiledeleteCreatedPropertyasserted the lower-casename. Result:Expected "cp-…-table…" / Received "…CP-…-TABLE…".deleteCreatedPropertymatches the name withignoreCase: true, in the shared helper so every caller gets it (CustomProperties, Article, TeamUser, GlossaryImportExport).Number CP between operatorfailed differently, with a click timeout on the Delete menu item. It's a knock-on effect: every earlier delete failed, properties piled up ontable, and re-rendering the long list blocks the menu click pastselectOptionWithRetry's 2s timeout. I reproduced this locally with ~500 leftover properties, and the test passes once deletes work again.2.
PersonaSettings.spec.ts: AI-mode Navigation card opens the AI sidebar editor (#36862 + #36847)/customize/navigationnow opens the AI sidebar editor (ai-sidebar-switch-*), and Merge persona Navigation and AI sidebar into one Navigation card #36862 updated the existing "Navigation in AI mode" test to that id.navigation-switch-/explore, soelement(s) not found.ai-sidebar-switch-explore. "Save & go" now checks the payload forexplore, the same fragment the sibling test uses.Type of change:
High-level design:
N/A: small test-only change.
Tests:
Use cases covered
Unit tests
Not applicable (Playwright-only change).
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Files updated:
playwright/utils/customProperty.ts,playwright/e2e/Features/AIMode/PersonaSettings.spec.ts.Run locally against this branch's UI (Vite, Node 22.23.4) and a local server,
--retries=0:CustomProperties.spec.ts› "Add update and delete custom properties for (table|pipeline|storedProcedure)": every test that failed in CI, plus the rest of those describesPersonaSettings.spec.ts(the 4 failing tests, Navigation in AI mode, Home minimize), the otherdeleteCreatedPropertycallers (ArticleCustomProperties,TeamUserCustomProperties,GlossaryImportExport› Glossary Bulk Import Export), and the two CI-flaky tests (Topic› Copy field link,TestSuiteDetailsPage› upper-cased search, both modes)table › Integerandfooter Canceltests without this fixLint:
eslintandprettier --checkon both files are clean, andtsc -p playwright/tsconfig.jsonpasses.Manual testing performed
cp-*custom properties that earlier local runs had left on table/pipeline/storedProcedure/team/user/glossaryTerm, so local state matches a fresh CI database.UI screen recording:
Not applicable: test-only change, no UI behaviour changed.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code