Skip to content

fix(test): persona related flaky tests - #30180

Merged
chirag-madlani merged 2 commits into
mainfrom
fix/person-tests
Jul 17, 2026
Merged

chirag-madlani merged 2 commits into
mainfrom
fix/person-tests

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Jul 17, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

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.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Summary by Gitar

  • Test stability improvements:
    • Replaced shared user object with user1 in PersonaFlow.spec.ts to prevent test interference.
    • Added explicit exact: true matchers for 'Navigation' text in CustomizeDetailPage.spec.ts to avoid selector ambiguity.
    • Included page.reload() and waitForAllLoadersToDisappear in PersonaDeletionUserProfile.spec.ts to ensure consistent state after persona deletion.

This will update automatically on new commits.

Greptile Summary

This PR stabilizes persona-related Playwright tests. The main changes are:

  • Uses one describe-scoped user throughout the default persona flow.
  • Removes the stale shared user and unused import.
  • Uses exact matching for Navigation locators.
  • Reloads the profile flow after persona deletion.

Confidence Score: 5/5

This looks safe to merge.

  • The persona flow now uses the same initialized user for setup, login, search, assertions, and cleanup.
  • The unused import that broke the TypeScript check is removed.
  • No blocking issues remain in the changed code.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/PersonaFlow.spec.ts Uses the describe-scoped user consistently and removes stale shared state.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CustomizeDetailPage.spec.ts Makes Navigation locators exact to avoid ambiguous matches.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/PersonaDeletionUserProfile.spec.ts Reloads the page before validating the user profile after persona deletion.

Reviews (2): Last reviewed commit: "fix checkstyle + test" | Re-trigger Greptile

Context used (3)

  • Context used - CLAUDE.md (source)
  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - AGENTS.md (source)

Copilot AI review requested due to automatic review settings July 17, 2026 12:19
@chirag-madlani
chirag-madlani requested a review from a team as a code owner July 17, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@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.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (1 flaky)

✅ 39 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 39 0 1 0
🟡 1 flaky test(s) (passed on retry)
  • Features/CustomizeDetailPage.spec.ts › Pipeline - customization should work (shard 1, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

Copilot AI review requested due to automatic review settings July 17, 2026 13:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gitar-bot

gitar-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Stabilizes flaky persona tests by adding exact text matching, state reloads, and dedicated user fixtures. Resolved an unused import in the test suite.

✅ 1 resolved
✅ Quality: Unused import getDefaultAdminAPIContext added to PersonaFlow.spec.ts

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/PersonaFlow.spec.ts:24
The diff adds getDefaultAdminAPIContext to the imports from ../../utils/common, but it is never referenced anywhere in PersonaFlow.spec.ts (only the import line matches). ESLint's no-unused-vars rule will flag this and fail the required lint:fix/CI checkstyle. Remove the unused import.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@chirag-madlani
chirag-madlani merged commit dbc657b into main Jul 17, 2026
43 of 45 checks passed
@chirag-madlani
chirag-madlani deleted the fix/person-tests branch July 17, 2026 14:15
@gitar-bot

gitar-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Stabilizes flaky persona tests by adding exact text matching, state reloads, and dedicated user fixtures. Resolved an unused import in the test suite.

✅ 1 resolved
✅ Quality: Unused import getDefaultAdminAPIContext added to PersonaFlow.spec.ts

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/PersonaFlow.spec.ts:24
The diff adds getDefaultAdminAPIContext to the imports from ../../utils/common, but it is never referenced anywhere in PersonaFlow.spec.ts (only the import line matches). ESLint's no-unused-vars rule will flag this and fail the required lint:fix/CI checkstyle. Remove the unused import.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

This branch was previously deployed

1 inactive deployment
test — c5942f2a Deployed Jul 17, 2026 by chirag-madlani via playwright-ci-postgresql (1, 1) #57061
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.

3 participants