Skip to content

Fix the path editor save test timeout - #373

Merged
byronwall merged 1 commit into
mainfrom
claude/path-editor-save-spec
Nov 29, 2026
Merged

byronwall merged 1 commit into
mainfrom
claude/path-editor-save-spec

Conversation

@byronwall

Copy link
Copy Markdown
Owner

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 updateDoc request whose body contains the note ID. In Chromium, Playwright's request.postData() returns null for 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):

no route:  postData null
route:     postData ";0x000000ac;{...\"cmx19n4o5001x8cv0z7a94ad3\"...\"multicharmx19n2vkbtsl.pointermx19n2vkbtsl\"..."

Before the change, on main (108c4996):

1 failed (page.waitForRequest: Test timeout of 120000ms exceeded)
1 passed

After, playwright test path-editor-late-save --repeat-each=3 --workers=1 against the audit harness (pnpm dev):

6 passed (30.3s)

pnpm lint exits 0, pnpm type-check passes, pnpm test: 925 passed, 86 skipped. A test-only change has no screen to show.

Limits

  • Run only against pnpm dev, not a production build.

🤖 Generated with Claude Code

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>
@byronwall

Copy link
Copy Markdown
Owner Author

Review (code-review, medium): no findings.

@byronwall
byronwall merged commit a90ea0a into main Nov 29, 2026
3 checks passed
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