fix(test): flaky persona / task filter spec failure#27880
fix(test): flaky persona / task filter spec failure#27880chirag-madlani merged 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Improves Playwright E2E test stability around persona defaulting and widget filter timing to reduce flaky spec failures in the UI test suite.
Changes:
- Added an
afterAllteardown to delete the user and personas created for the “default persona” flow. - Added a pre-check in the “Activity Feed Widget” test to ensure task cards are present before running widget filter assertions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/PersonaFlow.spec.ts | Adds teardown cleanup for entities created during the default persona flow to avoid cross-test interference. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/CustomizeWidgets.spec.ts | Adds a guard before applying Activity Feed widget filters to avoid filtering before content loads. |
| await Promise.all([ | ||
| user.delete(apiContext), | ||
| persona1.delete(apiContext), | ||
| persona2.delete(apiContext), | ||
| ]); |
| await test.step('Test widget filters', async () => { | ||
| await waitForAllLoadersToDisappear(page); | ||
| await waitForAllLoadersToDisappear(page, 'entity-list-skeleton'); | ||
| expect(await page.getByTestId('task-feed-card').count()).toBeGreaterThan(0); |
🟡 Playwright Results — all passed (14 flaky)✅ 3985 passed · ❌ 0 failed · 🟡 14 flaky · ⏭️ 86 skipped
🟡 14 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ Approved 1 resolved / 1 findingsStabilizes Persona and task filter specs by adding missing await assertions on task feed cards. No issues found. ✅ 1 resolved✅ Edge Case: Missing
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|
|
Failed to cherry-pick changes to the 1.13 branch. |
|
Failed to cherry-pick changes to the 1.12.7 branch. |



Describe your changes:
PersonaFlow.spec.ts
CustomizeWidget.spec.ts
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>