Repository navigation
Fixes 33053: stabilize DQ select-option flakes and burn the Playwright quarantine from 8 to 4 - #33122
Conversation
Two causes, and QUARANTINE.md recorded only the second. 1. `fitToScreen` returned as soon as it clicked its menu item, so the menu popover was still animating out and lingered in the DOM as a second [role="dialog"]. The test asserted on an unscoped [role="dialog"], which then matched both it and the entity panel, tripping strict mode. 2. `Verify edge delete button in drawer` deletes the shared table1 -> topic edge and never restores it. Every later test in the file therefore saw a graph with no topic -- the "node is not in the graph" symptom recorded in QUARANTINE.md, and the reason it failed 11/11 rather than intermittently. Have fitToScreen wait for the menu to detach, scope the assertion to lineage-entity-panel, and restore the edge in a finally. Verified red -> green locally: the test failed on the strict violation before, and the whole spec now passes serially. Two tests in `node selection edge behavior` still fail on minimap click interception. A control run against origin/main confirms that is pre-existing and unrelated -- that describe builds its own fixtures. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both are green 3/3 locally, so they are costing coverage for nothing. Neither gets a code change, and I could not identify what fixed them -- nothing since the 2026-09-04 sampling touches their recorded symptoms. That is weaker evidence than a root cause, so it is recorded in QUARANTINE.md alongside each entry. Table.spec's symptom (timeout after waitForAllLoadersToDisappear) is load-dependent, so an idle local server is the wrong instrument for it; re-tag it if it ejects a PR. Not released: TestSuiteDetailsPage passed the single triage run but fails 3/3 on repeat -- its waitForResponse on the test-case search still never resolves. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…g blind createTestCase did `.then((res) => res.json())` with no status check, so a failed POST was pushed onto testCasesResponseData as an error body. Callers then read `undefined` for the name and failed far away from the cause -- a search that waits for `q === undefined` never resolves at all, which is the shape of the TestSuiteDetailsPage quarantine entry. Not a fix for that entry: I could not show the create actually failing, and the test still flakes at roughly 1 in 3 locally. This removes a way for a real failure to disguise itself, nothing more. The untyped read was also hiding a genuine type hole: testCase.testSuite is optional and was being assigned to a non-optional field. Two sibling calls in this file parse blind the same way; left alone for now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The poll asked for 90s inside a 60s test, so it could never finish its own budget: the test died on its own timeout and reported nothing about what the poll was waiting for. Sized to 45s so the poll's message actually surfaces -- the KnowledgeCenter quarantine entry now says "Timeout 45000ms exceeded while waiting on the predicate" instead of a bare test timeout. Also assert the search query reaches the URL before looking for an entity-type tab: ExploreV1 only renders the tab Menu when searchQueryParam is set, and falls back to <ExploreTree>, whose items carry no menuitem role. This does not fix the entry -- the card still never appears and the panel is still a tree at failure despite the URL carrying a search, which I could not explain from logs alone. It stops the failure hiding its own cause. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Traced by instrumenting the poll rather than reading logs. The callback never
reached its first diagnostic; a step trace showed why:
STEP B searchBox={"count":0, "url":"http://localhost:8585/explore"}
The global search box lives in the NavBar, which is not mounted the instant
/explore resolves. fill() auto-waits with no timeout of its own, so the
callback did not fail -- it hung. expect.poll cannot interrupt a pending
callback, so the reload-and-retry this helper is built around never ran, and
the test died on its own timeout reporting only that the poll gave up.
That is why the reported symptom kept leading elsewhere: the error said the
poll timed out, so the question looked like "what is the poll waiting for?",
when the poll was blocked on iteration one.
Bound the wait so a not-yet-mounted NavBar returns false, the poll reloads,
and the search proceeds. Poll sized to 45s so it stays under the 60s test
budget and its own message can surface.
Fixes the hang; whether the card then appears is a separate question. Not
verified end to end locally -- auth.setup started taking 10+ minutes and
failing after this session's fixture volume, so the local server is no longer
a reliable verifier.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two mistakes from the de-quarantine commits on this branch: The three "Not quarantined — fixed instead" rows were inserted between that table's header and its `|---|---|` separator, so the separator was stranded below them and the rows rendered as part of the header block. The entry count was updated in the section intro but not in the `PLAYWRIGHT_RUN_QUARANTINED` paragraph below it, which still said 9. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
openEntitySummaryPanel always waited for `searchBox`, the NavBar GlobalSearchBar. /explore renders its own ExploreSearchInput and does not mount the NavBar one, so on that page the wait could only ever time out: runSearch returned false on every attempt and the retry poll span until its budget expired. The helper had never worked for callers landing on /explore, which is why ExplorePageRightPanel_KnowledgeCenter failed 11/11 rather than flaking. `explore-search-input` marks the field wrapper rather than the field, so the textbox inside it is the fill target. Chosen over a locator union or `.first()`: a union risks a strict-mode violation if a page ever renders both, and `.first()` would add a no-positional-locator violation and move the pinned corpus total. Verified against the local stack: 3/3 red before, 3/3 green after (~8.5s per run), cause confirmed at each layer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
808891c fixed the cause — openEntitySummaryPanel waited for the NavBar searchBox on a page that renders ExploreSearchInput instead — but left the tag on. Verified against the local stack: 3/3 green (~5.5s per run). Default lane is now 4566 of 4571; the quarantined lane lists 12, which is the remaining 5 entries plus the 7 fixture projects, matching what the doc claims. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The evidence was stale before it was written down. Every test in the file
reached its subject through navigateToAIContextTab, which called
navigateToPersonaWithPagination — a walk of up to 15 pages, each costing a
waitForAllLoadersToDisappear, a `next` click and a /api/v1/personas* round trip,
before the test touched anything it asserted on. That is the recorded timeout,
and it is why the rate tracked shard load (7/11) instead of being deterministic:
the walk grows with the personas the shard has accumulated.
after the sample — replacing the walk with goto('/context-center/ai-context')
plus one card click, and making the list page follow its cursor to exhaustion
server-side. The path that timed out no longer exists.
Green 9/9 locally at ~5s against a 60s budget. Default lane is now 4567 of 4571.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
All three were run locally at --repeat-each=3 and passed 3/3, comfortably inside their budgets. Their recorded rates are 3/11 and 2/11, so that is the expected result and not evidence they are fixed — they are load-dependent and an idle machine does not reproduce them. Write that down so the next person does not spend the afternoon re-running them locally as I did; the next step is a trace from a failing merge_group run. Also records one unverified lead on the test suite entry. Its symptom is a waitForResponse that never resolves, and every listener in addTestCaseList.ts is correctly hoisted, so a late-registered listener is not the cause. addTestCaseListFilterByFirstColumn is the one that can genuinely never see its request: it picks the Column dropdown's first menuitem, then waits for a list call carrying columnName, which a not-yet-populated dropdown will not produce. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…st()
ActivityStream: the test could not fail. waitForResponse required status 200
inside the predicate, so any other status left it waiting; .catch(() => null)
then swallowed the timeout and `if (response)` skipped every assertion, so a
missing or failing activity call passed silently. It now uses the existing
visitTableActivityFeed helper, which waits on the specific entity-activity
endpoint, asserts the status, and returns the parsed body.
PersonaAIContextRules: getByText(/knowledge/i) matches all three knowledge
types — Glossary Term, Article and Metric all render "Knowledge" as supporting
text — so .first() left DOM order to decide which type the test exercised.
Select by the option's data-key instead. The fully-rendered switch resolves to
exactly one element, so its .first() went too.
Table: dropped scrollIntoViewIfNeeded (hover/click auto-scroll) and replaced
the getByRole('menu').filter({hasText: '/ Page'}) scope with the specific
menuitem.
Domains: the page.reload() was doing nothing — selectDomain reloads between
its own poll attempts. Verified 3/3 green without it.
selectDomain now activates the row through its own onAction with Enter rather
than clicking the row's centre, so it needs no text match and no chip-geometry
comment.
Lineage: the close button has a data-testid; use it, scoped to the panel,
instead of getByLabel('Close').first().
OwnersSection had no testid, only a class — added one and used it.
eslint-suppressions.json shrinks by the three removed positional locators.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…able here I removed this reload after verifying the test 3/3 green without it — but that was on the old base, against my own selectDomain change, which the rebase dropped in favour of main's equivalent fix. On current main I cannot verify it either way: the left sidebar is server-driven and this environment's server image predates main by 69 commits, so the sidebar renders without a Domains item and the test cannot reach the assertion at all. Restore main's line rather than ship a removal whose evidence no longer applies. Domains.spec.ts is now byte-identical to main. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The corpus test pins the total per rule so a new suppression cannot slip in unnoticed. Removing the three `.first()` calls in the review pass took no-positional-locator from 1304 to 1301, and the rebase onto main shifted the baseline again, so the pinned number no longer matched what the corpus produces. `yarn test:eslint-rules` is green (114 pass), and `generate-playwright-rule-table.mjs --check` and `yarn lint:playwright` both pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…click Both released tests flaked in this PR's own Playwright run — first attempt failed, retry passed. That is the masked failure this whole effort exists to remove, so neither was fixed. Table "should persist page size" is mine and is now fixed. The review pass left the option click outside the retry that opens the menu, and CI caught exactly that: the menu opened, `<html>` intercepted the press, and the option then went hidden — 324 polls of "element is not visible" until the 180s timeout. Opening and picking now happen inside one retry, and asserting the trigger's new label makes the loop redo the whole thing when the pick did not take. 3/3 green locally, 5.6-21.2s. The KC owner test goes back into quarantine on this new evidence. The 11/11 failure it was tagged for was real and is fixed — openEntitySummaryPanel waited for the NavBar searchBox on a page that renders ExploreSearchInput — but that was hiding a second cause. expectOwnerInPanel polled the owner chip for a full 60s, re-navigating between attempts, and never saw it, even though addOwnerInKCPanel had already awaited the PATCH. So the write landed and the panel's read path lagged it. That is the original recorded symptom, so the fix was incomplete rather than wrong. A longer poll is not the answer; whoever picks this up should find what the panel reads and wait on that. Quarantine goes 3 -> 4; default lane is 4576 of 4580. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two merge-queue flakes shared one cause. The core Select renders its listbox in a non-modal React Aria popover: pressing a trigger that does not already hold focus opens it and, via the focus transition that same press produces, dismisses it a frame later. Neither call site bounded its option click, so a missed window left Playwright retrying a detached node until the 60s cap. Route both through selectOptionWithRetry, which reopens the listbox whenever the trigger reports itself collapsed and bounds each click — the same helper TableLevelTests already uses for this field's edit step. TestLibrary also asserted the selection on the Select root, which contains React Aria's hidden <select>. Its option text satisfied toContainText for any offered value, so a missed selection passed here and surfaced 20 lines later as a PATCH response without dataQualityDimension. Verified against a live instance with nothing selected: root = "Select Data Quality Dimension AccuracyCompleteness...Validity" trigger = "Select Data Quality Dimension" Both assertions now read the trigger. selectOptionWithMouse stays for the test-platforms multi-select, whose popup is typing-driven and has no collapsed/expanded trigger to guard on. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Review feedback: the rewritten call kept .first(), which om-playwright's no-positional-locator rule prohibits. Address it by name, mirroring the COUNT option in this same dropdown at L928 rather than adding exact: true — nothing in the file demonstrates that the option's accessible name has no supporting text, and the sibling call proves substring matching resolves here. Removing the violation orphaned a suppressions entry, so the baseline drops from 10 to 9 for this file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|



Describe your changes:
Fixes #33053
Two pieces of Playwright CI hygiene, combined here because they touch the same guardrail
baseline and would otherwise conflict on merge: the DQ select-option flakes below, and the
quarantine burn-down from #33054 (closed in favour of this PR).
Part 1 — DQ select-option flakes
Two merge-queue flakes found while triaging
dequeue alerts in #ci-cleanup. Evidence:
run 34415936354
(chromium-12,
chromium-11),
which dequeued #32919 despite being unrelated to it. Cross-PR rate at the time:
TableLevelTests › Custom SQL Query5/26 PRs,TestLibrary › external test definitions with read-only fields1/26.Root cause 1 — the listbox is gone before the click lands.
The core
Selectrenders its listbox in a non-modal React Aria popover. Pressing a trigger thatdoes not already hold focus opens it and — via the focus transition that same press produces —
dismisses it a frame later.
TestLibrary.spec.tsalready documented this window as ~160ms.Neither call site bounded its option click, so a missed window left Playwright retrying a detached
node until the 60s test cap. From the trace:
Playwright's log shows
element is not stable→element was detached from the DOM, retrying, andthe a11y snapshot at timeout has no
listboxand nooptionat all — justbutton "Please Select a Strategy Strategy" [active].Both sites now use
selectOptionWithRetry, which reopens the listbox whenever the trigger reportsitself collapsed and bounds each click.
TableLevelTests.spec.tsalready used it for this samefield's edit step (L928); the create step was the straggler.
Root cause 2 — the assertion could not fail.
TestLibraryasserted the selection withexpect(dimensionField).toContainText('Accuracy')wheredimensionFieldis the Select root. That root also contains React Aria's visually hidden<select>(rendered because the field renderer passesname), whose<option>text satisfiestoContainTextfor any offered value. Measured against a live instance with nothing selected:So a missed selection passed here and surfaced 20 lines later as a PATCH response with no
dataQualityDimension— which is exactly how attempt #0 failed. Both assertions now read thetrigger.
selectOptionWithMousestays for the test-platforms multi-select, whose popup is typing-drivenand has no collapsed/expanded trigger to guard on.
Part 2 — burn the Playwright quarantine from 8 to 4 (was #33054)
Quarantine is a holding pen, not a resting place. Four tests are released, each naming a cause
rather than resting on a green local run.
LineageInteraction— node panel opens on click (11/11)fitToScreenreturned before its menu popover finished its exit animation, leaving a second[role="dialog"]in the DOM, so an unscoped assertion tripped strict mode. Separately,Verify edge delete button in drawerdeletes the sharedtable1 → topicedge and never restores it, so every later test in the file saw a graph without the topic.PersonaAIContextRules— knowledge entity type (7/11)navigateToAIContextTab→navigateToPersonaWithPagination, a walk of up to 15 pages, each costing a loader wait, anextclick and a/api/v1/personas*round trip. #32458 replaced that walk with a direct route on 2026-09-07, three days after the sample.Table— should persist page size (6/11)ActivityStream— activity stream API is called (2/11)waitForResponserequiredstatus() === 200inside the predicate, so any other status left it waiting;.catch(() => null)swallowed the timeout andif (response)skipped every assertion. It now uses the existingvisitTableActivityFeedhelper, which waits on the specific entity-activity endpoint and asserts the status.ExplorePageRightPanel_KnowledgeCenterwas released and is now re-quarantined. The 11/11 failureit was tagged for was real and is fixed —
openEntitySummaryPanelwaited forsearchBox, the NavBarGlobalSearchBar, but/explorerenders its ownExploreSearchInputand never mounts it, so on thatpage the wait could only time out. Releasing it surfaced a second cause:
expectOwnerInPanelpolledthe owner chip for a full 60s, re-navigating between attempts, and never saw it — even though
addOwnerInKCPanelhad already awaited the PATCH. The write landed and the panel's read path laggedit. That is the original recorded symptom, so the fix was incomplete rather than wrong; it goes back
in with that evidence.
QUARANTINE.mdalso gains a correction: nothing under.github/setsPLAYWRIGHT_RUN_QUARANTINED,so a quarantined test runs in no lane at all and has produced no evidence since being tagged. The
soak lane that file described does not exist.
Not in this PR:
Domains — Verify domain tags and glossary terms. I diagnosed the same root causeindependently (the row-centre click landing on a tag link) but
mainfixed it first, withdomainRow.getByTestId('entity-name').click(). That commit was dropped as redundant.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
ROWSin the Strategy dropdownAccuracyandconfirming it reaches the PATCH payload
AI-context rule editor, table page-size persistence, and the entity activity stream.
Unit tests
yarn test:eslint-rules— 114 pass, 0 fail. The merge required recomputing the pinnedno-positional-locatortotal:main1304, this branch's DQ half −1, the quarantine half −3, so1300. Either PR's number alone would have failed
ui-checkstyleon the combined branch.Backend integration tests
Not applicable — no backend API changes.
Ingestion integration tests
Not applicable — no ingestion changes.
Playwright (UI) tests
No new tests; this repairs existing ones.
playwright/e2e/Features/DataQuality/TestLibrary.spec.tsplaywright/e2e/Features/DataQuality/TableLevelTests.spec.tsplaywright/e2e/Features/ActivityStream.spec.ts,Features/PersonaAIContextRules.spec.ts,Features/Table.spec.ts,Pages/Lineage/LineageInteraction.spec.tsplaywright/QUARANTINE.mdcarries the causes and refreshed counts (4576 of 4580; quarantinedlane lists 11 = 4 entries + 7 fixture projects)
Manual testing performed
Against a local stack (server + MySQL + Elasticsearch):
yarn lint:playwright— 0 errors (214 pre-existing warnings, none in these files).organize-imports+eslint --fix+prettier(the CI checkstyle sequence) — no diff produced.TestLibrary › should handle external test definitions with read-only fields— 3/3 passed,--retries=0. This test assertsupdatedBody.dataQualityDimension === 'Accuracy'on the PATCHresponse, so passing proves the new path commits a real selection rather than passing vacuously.
textContentshown above — confirming the old assertion was unfalsifiable.Not verified locally: the
TableLevelTestshalf. My local server image is 143 commits behindthis branch, and that test dies at L853 waiting for a
ServiceDocPanelanchor, well before thechanged line. I confirmed by control run that the unmodified test fails identically at L853, so
this change neither causes nor is exercised by that failure. Serving the branch's UI from Vite to
get past it pushed the failure earlier still (dev-server cold compiles exceed the 60s timeout).
That half rests on CI.
Quarantine half. Each changed test was run 2-4x locally, red-before / green-after where a fix was
involved. Then verified against CI rather than trusting local runs: on the pre-merge commit
ff2a4f0b21— 4492 passed, 0 failed, 6 flaky — every test this PR touches passed on a singleattempt, checked against each shard's
results.jsonrather than inferred from the flaky list:ActivityStream › activity stream API is called…Table › should persist page sizePersonaAIContextRules › knowledge entity type forces…LineageInteraction › Verify node panel opens on clickExplorePageRightPanel_KnowledgeCenter › Should remove user ownerThe 6 flaky tests in that run are unrelated to this PR and share no test with the previous run's 8 —
a churning population of ambient load-dependent flakes, which is the hole a per-test flake ledger
would close.
UI screen recording / screenshots:
Not applicable — no product code changed.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.data-testidonOwnersSection.🤖 Generated with Claude Code