Repository navigation
fix(test): persona related flaky tests - #30180
Conversation
❌ 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 |
🟡 Playwright Results — all passed (1 flaky)✅ 39 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 skipped
🟡 1 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 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
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Code Review ✅ Approved 1 resolved / 1 findingsStabilizes 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
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes:
Fixes #
I worked on ... because ...
Type of change:
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:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
userobject withuser1inPersonaFlow.spec.tsto prevent test interference.exact: truematchers for 'Navigation' text inCustomizeDetailPage.spec.tsto avoid selector ambiguity.page.reload()andwaitForAllLoadersToDisappearinPersonaDeletionUserProfile.spec.tsto 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:
Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "fix checkstyle + test" | Re-trigger Greptile
Context used (3)