Repository navigation
Fix the path editor save test timeout - #373
Merged
Merged
Conversation
In Chromium, request.postData() is null for server-action requests unless the page has a route, so waits that match the note ID in the body never resolved. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
|
Review (code-review, medium): no findings. |
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 path editor browser test "path save actions remain reachable and new paths keep typed segments" passes again. It timed out although the path saved.
User impact: None. This changes one test file.
Why
The test waits for an
updateDocrequest whose body contains the note ID. In Chromium, Playwright'srequest.postData()returnsnullfor server-action requests unless the page has a route. The first case in the file has a route, so it passed. This case had none, so its wait never matched. The test now adds a pass-through route.Proof
The same save request, logged on this case with and without a route (temporary debug lines):
Before the change, on
main(108c4996):After,
playwright test path-editor-late-save --repeat-each=3 --workers=1against the audit harness (pnpm dev):pnpm lintexits 0,pnpm type-checkpasses,pnpm test: 925 passed, 86 skipped. A test-only change has no screen to show.Limits
pnpm dev, not a production build.🤖 Generated with Claude Code