Repository navigation
[2.0] test(ui): port Playwright deflakes from main for nightly flakes - #38434
Merged
ShaileshParmar11 merged 1 commit intoNov 23, 2026
Merged
Conversation
Fixes the four flaky tests in the 2.0 nightly #199 Playwright runs: - LargeGlossaryPerformance drag and drop: wait for both rows to stop moving before dragTo (waitForStableBox, from main 7860a3f / #32631). - MetricBulkImportExportEdit async export: accept an auto-opened tray and retry the launcher click (clickUntilVisible, from main 31835ec / #34914). - PersonaAIContext entity-type picks: retry through the expanded trigger (selectOptionWithRetry, from main 451b972 / #34119 and 320f44b / #37423). - TableConstraint composite tooltip: scope the tooltip locator by name so a leftover tooltip cannot make the role match ambiguous.
ShaileshParmar11
requested review from
shah-harshit
and removed request for
a team
November 23, 2026 06:36
harsh-vador
approved these changes
Nov 23, 2026
ShaileshParmar11
deleted the
ShaileshParmar11/2.0-port-playwright-deflakes
branch
November 23, 2026 07:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes the flaky Playwright tests in the 2.0 nightly #199 runs (PostgreSQL 44968681989, MySQL 44968688028). Each test failed once and passed on retry.
Three of the four already have fixes on main that never reached 2.0. This PR ports those fixes and scopes one unscoped locator.
LargeGlossaryPerformance.spec.ts:374drag and drop (MySQL)dragTowithforce: truepressed on the row's old position, so no dragstart fired.waitForStableBoxon both rows beforedragTo. Ported from main7860a3fbeb8(#32631).MetricBulkImportExportEdit.spec.ts:998async export (MySQL).csv-jobs-tray-launcher, so the unbounded click hung.clickUntilVisible(launcher, popover). Ported from main #34914 (31835ec3935), with the.or()wait from the same file on main.PersonaAIContext.spec.ts:1492View in Explore link (MySQL)<html> intercepts pointer events, then the option was detachedselectOptionWithRetrythrough the expanded trigger. Ported from main #37423 (320f44b9d9b) for this test. It also covers the five identical picks inconfigures every entity type…, as main #34119 (451b97228da) did.TableConstraint.spec.ts:59composite tooltip (PostgreSQL)getByRole('tooltip')resolved to 2 elementsgetByRole('tooltip', { name: /Composite unique constraint/ }). Main has the same unscoped line, so there is nothing to port.New helpers on 2.0:
waitForStableBox, inplaywright/utils/dragDrop.tsclickUntilVisible, inplaywright/utils/waitHelpers.tsBoth are copied from main unchanged.
selectOptionWithRetryalready existed on 2.0.Not in this PR:
SSOConfiguration.spec.ts:376(Auth0, flaky): main removed that block in Fixes 35546: Align Preferences setting icons and pages, add Default Time Format to Platform Settings #35547.SSOConfiguration.spec.ts:415(hard failure): fixed in [2.0] test(ui): expect editable SAML SP fields in SSOConfiguration spec #38432.Type of change:
High-level design:
N/A — test-only changes copied from fixes already on main.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
MetricBulkImportExportEdit.spec.ts,PersonaAIContext.spec.ts,TableConstraint.spec.ts,utils/dragDrop.ts,utils/glossary.ts,utils/waitHelpers.tsyarn build, served withvite previewand proxied to a local server), with--project=chromium --retries=0. Selected tests:drag and drop for term reorderingAdmin starts exactly one async export jobconfigures every entity type…View in Explore link href…Table Constraint--repeat-each=3: 15 passed, 0 failed.4ecb6d5), not a 2.0 build.prosemirror-tablestwice ("Duplicate use of selection JSON ID cell"), so the runs used the production build.generate_playwright_impact_map.py --checkreports the map is up to date.tsc:playwrightadds no new errors in changed lines.Manual testing performed
yarn buildon this branch, with${basePath}replaced by/in a copy ofdist, served viavite previewwithVITE_DEV_SERVER_TARGET=http://localhost:8585.UI screen recording / screenshots:
Not applicable — test-only change.
Checklist:
Fixes <issue-number>: <short explanation>— test fix, no issue (skip-pr-checks).Fixes #<issue-number>above — test fix, no issue.REVIEW.mdat792e57fe7b0. No 🔴 or 🟡 findings.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
This PR ports Playwright flake fixes to the 2.0 branch.
No actionable issues were found. Tests were not run during this review.
Reviews (1) · Last reviewed commit: "test(ui): port Playwright deflakes from ..." · Reviewed by Greptile