Skip to content

fix(playwright): retry swallowed Next clicks in Table columns pagination test - #35269

Merged
harsh-vador merged 2 commits into
mainfrom
fix/pagination-table-columns-swallowed-click
Oct 13, 2026
Merged

harsh-vador merged 2 commits into
mainfrom
fix/pagination-table-columns-swallowed-click

Conversation

@sweta1308

@sweta1308 sweta1308 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the Features/Pagination.spec.ts › should test Table columns complete flow with search flake, 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 logged click action done, but the app never requested page 2: no /columns request 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's usePress cancels a press whose pointer-up is off-target, so onPress never fired. The un-timed waitForResponse then waited out the full 180s test timeout.

Fix: both Next clicks in the helper (normal mode and search mode) now go through the existing clickUntilVisible from waitHelpers.ts, which was written for clicks swallowed by a re-layout. Its target is the page indicator showing 2 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:

  • Bug fix

High-level design:

N/A — small change (one Playwright helper).

Tests:

Use cases covered

  • Table columns pagination: cursor-mode next page → search → number-mode next page → reload keeps page and search.

Unit tests

Not applicable — test-only change.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

Run locally against the Docker stack (PLAYWRIGHT_IS_OSS=true, project Basic, --retries=0):

  • Features/Pagination.spec.ts -g "Table columns", run 5 times each (--repeat-each=5 --workers=3): 10/10 passed

yarn lint:playwright reports 0 errors, tsc reports no errors in common.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:

playwright-report-table-columns

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

…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.
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 12, 2026
@sweta1308 sweta1308 added the skip-pr-checks Bypass PR metadata validation check label Oct 12, 2026
@gitar-bot

gitar-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown
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 clickUntilVisible, so a click swallowed by a mid-click layout shift is re-issued until the page indicator reads 2 of N. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador
harsh-vador enabled auto-merge October 13, 2026 06:52
@harsh-vador
harsh-vador added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 4904621 Oct 13, 2026
68 checks passed
@harsh-vador
harsh-vador deleted the fix/pagination-table-columns-swallowed-click branch October 13, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants