glass.spec: wait for tab switches by state, not the clock (#596) #598

Closed
kayg wants to merge 0 commits from issue/596-glass-flake into dev
Owner

Test-only fix for #596. The test waited a fixed 3s for Settings to be built (idle callback) and a fixed 500ms per switch; on a loaded host either can end before the other screen was drawn, so no frame of Settings was captured ("Settings showed" undefined). Now it waits for the built Settings layer, for aria-selected after each key, and for a new screencast frame. The invariant checked is unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

Test-only fix for #596. The test waited a fixed 3s for Settings to be built (idle callback) and a fixed 500ms per switch; on a loaded host either can end before the other screen was drawn, so no frame of Settings was captured ("Settings showed" undefined). Now it waits for the built Settings layer, for aria-selected after each key, and for a new screencast frame. The invariant checked is unchanged. 🤖 Generated with [Claude Code](https://claude.ai/code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
glass.spec: wait for each tab switch by what it does, not the clock (#596)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 40s
CI / rust (pull_request) Successful in 3m43s
905838255e
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Author
Owner

Landed in train AH, #616.

Train AH ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards.

Failures, each checked:

  • swipe-rows:140 (chromium-1440, webkit-390): the known Pin flake from server event order (#587, fix in review).
  • pill-room:309 (webkit-1440): fails on dev's code too, #601.
  • vim:418 (webkit-1440): passed 5 of 5 alone.
  • glass:268 passed in the full run for the first time since train AD.

Contents:

  • #445: the phone bar stays on the keyboard when iOS pans the view to show the caret. The keyboard size and the bar's target are measured in the same frame as the bar's own box, the keyboard check survives iOS shrinking innerHeight, and a settle loop catches the pan as it finishes. Simulator: 8 pt above the keyboard on every hop, Safari and Home Screen.
  • #596/#598: glass.spec tells Notes from Settings pixel by pixel, not by average brightness (20/20 under CPU load).
  • #610: the daily log reader keeps 00:00 as a time when a word like pm follows it; the property test no longer generates suffix collisions.
Landed in train AH, #616. Train AH ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards. Failures, each checked: - `swipe-rows:140` (chromium-1440, webkit-390): the known Pin flake from server event order (#587, fix in review). - `pill-room:309` (webkit-1440): fails on dev's code too, #601. - `vim:418` (webkit-1440): passed 5 of 5 alone. - `glass:268` passed in the full run for the first time since train AD. Contents: - #445: the phone bar stays on the keyboard when iOS pans the view to show the caret. The keyboard size and the bar's target are measured in the same frame as the bar's own box, the keyboard check survives iOS shrinking innerHeight, and a settle loop catches the pan as it finishes. Simulator: 8 pt above the keyboard on every hop, Safari and Home Screen. - #596/#598: glass.spec tells Notes from Settings pixel by pixel, not by average brightness (20/20 under CPU load). - #610: the daily log reader keeps `00:00` as a time when a word like `pm` follows it; the property test no longer generates suffix collisions.
kayg closed this pull request 2026-10-19 09:45:05 +00:00
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 40s
CI / rust (pull_request) Successful in 3m43s

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