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

Closed
kayg wants to merge 1 commit from issue/325-tabs-arrived-2 into dev
Owner

Part of #325 (tabs). Replaces #356, which went out empty. 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). Replaces #356, which went out empty. 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)
tabs.spec: the same note is the same path, not the same query (#325)
Some checks failed
CI / web (pull_request) Failing after 22s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m36s
769c734afb
A first visit to today's note carries ?arrived=1 until the editor takes it off, so comparing whole
URLs raced it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg closed this pull request 2026-10-14 20:53:59 +00:00
Some checks failed
CI / web (pull_request) Failing after 22s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m36s

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!357
No description provided.