test:fix SearchSeparation failure#28239
Conversation
🟡 Playwright Results — all passed (12 flaky)✅ 4140 passed · ❌ 0 failed · 🟡 12 flaky · ⏭️ 86 skipped
🟡 12 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 2 resolved / 2 findingsImplements server-side filtering and the reusable SearchSeparationSuite to resolve intermittent Playwright timeouts. Duplicated assertion logic and unsafe casting have been cleaned up to ensure robust test stability. ✅ 2 resolved✅ Quality: Large duplicated filter assertion blocks in if/else branches
✅ Quality: Unsafe cast chain to access serviceResponseData
OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Describe your changes:
Playwright tests were intermittently failing for entity types due to the target entity is not on page 1, and toBeVisible() times out.
This PR adds proper server-side filtering support for all entity types, including filters like service and tier, so only the required entities are fetched and displayed on the first page during test execution.
Summary by Gitar
SearchSeparationSuite.tsas a centralized, reusable factory for verifying search index parity (live update vs. full reindex).SearchSeparationSuite.ts.waitForLiveIndexto verify propagation of tier tags to Elasticsearch.checkExploreFilterWithServiceBaseto validate faceted search filtering across Tier, Certification, and Tag categories.assertReindexedDocPreservesSeparationto dynamically extract service display names during indexing checks.This will update automatically on new commits.