Skip to content

fix: implement server-side search functionality in pagination tests - #752

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings
Nov 14, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings

Conversation

@pikann

@pikann pikann commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the Firefox failure of the e2e-tests workflow run 43570825094: tests/ux/pagination.spec.ts › "the service accounts table pages by number and searches on the server" failed on all three attempts.

Cause

The test filled the search box and then immediately clicked "Next page". The search is debounced (300 ms) and resets the table to page 1 when it lands. On the slower Firefox runner the click happened first, so the late debounce snapped the table back to page 1 and "21–25 of 25" never appeared. The app behaves correctly; the test was racing it.

Change

  • apps/e2e/tests/ux/pagination.spec.ts: wait for the filtered /service-accounts?search=… response before paging, both for the initial search and for the re-applied search after the reload.

Testing

  • Not run locally; to be verified by re-running the e2e workflow on Firefox.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Server-side search synchronization — the service accounts pagination test now waits for the debounced search=<prefix> list response before paging, both on first entry and inside the reapply callback after the reload, so a late 300 ms debounce timer can no longer land after "Next page" and snap the table back to page 1.

I confirmed the fix addresses the real mechanism: apps/web/src/routes/_authenticated/admin/service-accounts/index.tsx applies search through useDebouncedCallback(..., 300) with setPage(1) when the timer fires, and serviceAccountsPageQueryOptions keys on search, so the awaited response is exactly the filtered fetch. Scoping it to this test is right — the users table applies its search synchronously, so the same gap does not exist there.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 40719e3 into master Nov 14, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-testings branch November 14, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant