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

Closed
kayg wants to merge 0 commits from issue/325-tabs-arrived-3 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).

Rebased onto current dev (5552b79), which has the dotted tree lines, the Bar rewrite and the tree-cost fix; the earlier CI failure of the old PR was dev's own tree-cost unit test, already fixed there. Replaces #357.

On current dev this test did not fail in my last run (a race: it depends on whether the editor has taken ?arrived=1 off yet), so the evidence is the earlier red run and the reasoning above.

🤖 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). Rebased onto current dev (5552b79), which has the dotted tree lines, the Bar rewrite and the tree-cost fix; the earlier CI failure of the old PR was dev's own tree-cost unit test, already fixed there. Replaces #357. On current dev this test did not fail in my last run (a race: it depends on whether the editor has taken `?arrived=1` off yet), so the evidence is the earlier red run and the reasoning above. 🤖 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 / server (pull_request) Successful in 32s
CI / rust (pull_request) Failing after 2m2s
CI / web (pull_request) Failing after 2m3s
59dc62d529
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
Author
Owner

Landed in merge train #380.

Landed in merge train #380.
kayg closed this pull request 2026-10-14 22:25:32 +00:00
Some checks failed
CI / server (pull_request) Successful in 32s
CI / rust (pull_request) Failing after 2m2s
CI / web (pull_request) Failing after 2m3s

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