Repository navigation
fix: implement server-side search functionality in pagination tests - #752
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ 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 thereapplycallback 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.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
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.

Summary
Fixes the Firefox failure of the
e2e-testsworkflow 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