Skip to content

Conversation

manerlan
Copy link
Member

Closes #89 .

keeps focus in the search field while the user types failed now and then during npm run check (received /sok, expected q=pinot). It still used real time: the 300 ms debounce plus typing could take longer than waitFor's 1 s on a busy machine.

The other typing tests were moved to fake timers in the debounce fix. This one was in another describe block and was missed. It now lives in "typing in the search field", types with delay: null and moves the clock past the debounce with pause(), like the others. What it checks is the same: the URL gets q=pinot, and focus stays in the search field.

Only the test file changes.

How to test

in root folder 
npm run check

@manerlan manerlan requested a review from a team as a code owner November 18, 2026 13:33
@manerlan manerlan linked an issue Nov 18, 2026 that may be closed by this pull request
Copy link
Member

@siverne siverne left a comment

Choose a reason for hiding this comment

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

ran "npm run check" which seemed fine.

@siverne siverne merged commit 3ef67b9 into main Nov 19, 2026
@siverne siverne deleted the 89-searchpage-test-fix branch November 19, 2026 12:22
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky test: SearchPage keeps focus while typing
2 participants