Repository navigation
harden find-in-files no-op preview tests against slow runners - #18039
Merged
Merged
Conversation
🪟 Windows Desktop E2E · Server 2025 x64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · Windows Server 2025 x64 · commit |
🍎 macOS Desktop E2E · ARM64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
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.
The three Find in Files no-op replace-preview tests (
regex replace preview omits...,literal replace preview omits...,regex replace preview retains a line mixing...) intermittently fail on loaded CI runners. The failures showed the all-no-op file still listed, or an<ins>count of 2 instead of 1.Root cause
These tests asserted against Playwright's default 5s
expecttimeout (the suite sets noexpect.timeout), while the rest of the file uses the 20sTIMEOUTS.fileOpenbudget. After typing a replacement, the debounced preview re-runs the search server-side; on a saturated runner that roundtrip exceeds 5s, so the pre-preview listing was still in place when the assertion fired.The intended "wait for the preview" gate was also ineffective: it waited on
real_change.txt/mixed.txt, which were already listed by the pre-preview search, so it never actually blocked on the preview landing.Change
<ins>), which only appears once the debounced preview renders -- a real "preview settled" signal -- instead of a file that was already present.ins-count assertions the longerTIMEOUTS.fileOpenbudget so a slow server roundtrip (or a transient mid-render double-decorate) can settle.No assertion is weakened; each test verifies the same end state. Verified locally: full
find_in_files_replace.test.tssuite passes (8/8) in dev desktop mode.Test-only change (e2e flake hardening); no NEWS entry.