tabs.spec: compare the note's path, not the transient ?arrived=1 #356

Closed
kayg wants to merge 0 commits from issue/325-tabs-arrived into dev
Owner

Part of #325 (tabs). A test fix; the product behaves as intended.

tabs.spec "Notes keeps its editor while you are in Settings" failed in chromium-1440 with Expected "/note/day-2026-10-14?arrived=1" Received "/note/day-2026-10-14". The first visit to today's note carries ?arrived=1 (App.svelte) until the editor focuses and removes it (Editor.svelte, setQuery({ arrived: null })). The test read the URL at one moment and compared it with the URL after the round trip through Settings, so it depended on whether the editor had taken the flag off yet. The test is about the same note and the same editor element, so it now compares the note's path only, with a comment.

Evidence. Red on dev in chromium-1440 (first test to visit on a fresh server, so the flag is there). After: passes twice in a row in chromium-1440 and webkit-1440 on a fresh server (tabs is skipped below 760 px by design).

🤖 Generated with Claude Code

Part of #325 (tabs). A test fix; the product behaves as intended. `tabs.spec` "Notes keeps its editor while you are in Settings" failed in chromium-1440 with `Expected "/note/day-2026-10-14?arrived=1" Received "/note/day-2026-10-14"`. The first visit to today's note carries `?arrived=1` (App.svelte) until the editor focuses and removes it (`Editor.svelte`, `setQuery({ arrived: null })`). The test read the URL at one moment and compared it with the URL after the round trip through Settings, so it depended on whether the editor had taken the flag off yet. The test is about the same note and the same editor element, so it now compares the note's path only, with a comment. **Evidence.** Red on dev in chromium-1440 (first test to visit on a fresh server, so the flag is there). After: passes twice in a row in chromium-1440 and webkit-1440 on a fresh server (tabs is skipped below 760 px by design). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kayg closed this pull request 2026-10-14 19:35:13 +00:00
Some checks failed
CI / server (pull_request) Successful in 23s
CI / web (pull_request) Failing after 23s
CI / rust (pull_request) Successful in 1m35s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!356
No description provided.