Repository navigation
fix(playwright): retry swallowed Next clicks in Table columns pagination test - #35269
Conversation
…ch flow The Table columns pagination test hung for the full 180s timeout in the merge queue: content above the table shifted Next between pointerdown and pointerup, react-aria dropped the press, no /columns request fired, and the un-timed waitForResponse waited forever. Click Next through clickUntilVisible, keyed on the page indicator reaching page 2, so a swallowed click is retried and a successful one is never repeated.
❌ 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🟡 Medium risk · Routing pagination test clicks through clickUntilVisible adds retries; if the page indicator lags, repeated Next clicks could distort the test's page-transition result. Retries the Next-page click in the Table columns pagination helper via VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledOptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes the
Features/Pagination.spec.ts › should test Table columns complete flow with searchflake, which removed #34819 from the merge queue (run 38245222027, chromium-07).Root cause (from the CI trace): both attempts hung at the first Next click in
testCompletePaginationWithSearch. Playwright loggedclick action done, but the app never requested page 2: no/columnsrequest was sent, and the page stayed on "Page 1 of 4". The screencast shows content shifting about 46px between pointerdown and pointerup, so Next moved from y≈612 to y≈666. The pointer-up landed on a table row, and react-aria'susePresscancels a press whose pointer-up is off-target, soonPressnever fired. The un-timedwaitForResponsethen waited out the full 180s test timeout.Fix: both Next clicks in the helper (normal mode and search mode) now go through the existing
clickUntilVisiblefromwaitHelpers.ts, which was written for clicks swallowed by a re-layout. Its target is the page indicator showing2 of N. It clicks again only while the page has not advanced, so a click that worked is never repeated and the test cannot skip to page 3. The response and page-2 assertions are unchanged. Every page that uses this helper gets the fix.Type of change:
High-level design:
N/A — small change (one Playwright helper).
Tests:
Use cases covered
Unit tests
Not applicable — test-only change.
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Run locally against the Docker stack (
PLAYWRIGHT_IS_OSS=true, projectBasic,--retries=0):Features/Pagination.spec.ts -g "Table columns", run 5 times each (--repeat-each=5 --workers=3): 10/10 passedyarn lint:playwrightreports 0 errors,tscreports no errors incommon.ts, and prettier is clean.Manual testing performed
Analysed the CI trace (
trace.zip, screencast frames, action log and network log) to confirm that the click was swallowed and that no page-2 request was sent.UI screenshot:
Checklist:
🤖 Generated with Claude Code