Skip to content

Fixes #37007: Align CustomProperties delete and PersonaSettings navigation tests with the current UI - #37008

Merged
anuj-kumary merged 4 commits into
mainfrom
anuj-kumary/playwright-test-failure
Nov 4, 2026
Merged

anuj-kumary merged 4 commits into
mainfrom
anuj-kumary/playwright-test-failure

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

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)

  • fix(ui): address Custom Properties UI feedback from 2.1 release testing #36808 changed the "Delete Property" confirmation to getEntityName(selectedProperty), so it now shows the display name.
  • editCreatedProperty sets that display name to propertyName.toUpperCase(), while deleteCreatedProperty asserted the lower-case name. Result: Expected "cp-…-table…" / Received "…CP-…-TABLE…".
  • Fix: deleteCreatedProperty matches the name with ignoreCase: true, in the shared helper so every caller gets it (CustomProperties, Article, TeamUser, GlossaryImportExport).
  • Number CP between operator failed differently, with a click timeout on the Delete menu item. It's a knock-on effect: every earlier delete failed, properties piled up on table, and re-rendering the long list blocks the menu click past selectOptionWithRetry'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)

Type of change:

  • Bug fix

High-level design:

N/A: small test-only change.

Tests:

Use cases covered

  • Add, edit (display name), and delete each custom property type on table, pipeline and storedProcedure; delete confirmation names the property.
  • Leaving a persona's in-modal Navigation editor with unsaved edits through the footer Cancel, breadcrumb, side nav, modal close, and Save & go.

Unit tests

Not applicable (Playwright-only change).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

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:

Run Result
CustomProperties.spec.ts › "Add update and delete custom properties for (table|pipeline|storedProcedure)": every test that failed in CI, plus the rest of those describes 47 passed, 0 failed
PersonaSettings.spec.ts (the 4 failing tests, Navigation in AI mode, Home minimize), the other deleteCreatedProperty callers (ArticleCustomProperties, TeamUserCustomProperties, GlossaryImportExport › Glossary Bulk Import Export), and the two CI-flaky tests (Topic › Copy field link, TestSuiteDetailsPage › upper-cased search, both modes) 17 passed, 0 failed
RED check: same table › Integer and footer Cancel tests without this fix 2 failed with the exact CI errors

CustomProperties: 47 passed

PersonaSettings and related: 17 passed

Lint: eslint and prettier --check on both files are clean, and tsc -p playwright/tsconfig.json passes.

Manual testing performed

  1. Ran this branch's UI with Vite on :3100, proxying to a local server on :8585.
  2. Ran the specs above. I first removed ~2,800 leftover 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:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

…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.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 4, 2026 05:10
@anuj-kumary
anuj-kumary requested a review from sweta1308 November 4, 2026 05:10
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added the UI UI specific issues label Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@anuj-kumary anuj-kumary self-assigned this Nov 4, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Nov 4, 2026
@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 4, 2026 05:20
@gitar-bot

gitar-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown
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.

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 merged commit 962b1b4 into main Nov 4, 2026
61 of 62 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/playwright-test-failure branch November 4, 2026 05:47
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playwright: CustomProperties delete and PersonaSettings unsaved-changes tests fail on main after #36808 / #36862

2 participants