Fixed context center flaky tests - #30591
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 |
Code Review ✅ Approved 1 resolved / 1 findingsUpdates assertions in Playwright tests for Context Center documents and articles to resolve flakiness by using substring matching and numeric comparisons. No issues found. ✅ 1 resolved✅ Quality: Second folder-count assertion re-checks a stale constant
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
* Fixed context center flaky tests * addressed gitar comment
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
ContextCenterDocumentandContextCenterArticlesto prevent flakinessThis will update automatically on new commits.
Greptile Summary
This PR adjusts two Context Center Playwright assertions intended to reduce test flakiness.
Confidence Score: 3/5
The PR is not yet safe to merge because the article persistence test now checks textarea text content instead of its saved value.
The article title is rendered through a textarea value, but the changed assertion examines text content after navigation and can therefore fail despite correct persistence; the document count change now performs the requested post-selection read.
Files Needing Attention: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterArticles.spec.ts
Important Files Changed
Reviews (2): Last reviewed commit: "addressed gitar comment" | Re-trigger Greptile