glass.spec: judge the app at rest, not a new row or hidden switches settling #355

Closed
kayg wants to merge 1 commit from issue/325-glass-at-rest into dev
Owner

Part of #325 (glass, "an animation at rest"). A test fix; the product behaves as intended.

Two causes, both in apps/web/e2e/glass.spec.ts:

  1. chromium-1440 failed on the first look with row-in ... li fresh. A row made in the last 4 s glows as it appears (NoteList: fresh is Date.now() - created < 4000, by the clock). The test seeded its note, waited 4.5 s, then opened the app, and that first visit creates today's note, a new row. Fix: visit once, then wait the 4.5 s (a wait on the clock because the clock decides it, commented), and a 60 s timeout for WebKit's software drawing of four looks.
  2. webkit-1440 and webkit-390 failed with transition on squish md ... on. Settings stays mounted, hidden, under Notes (#173); its "Photos from Unsplash" switch eases its colour (320 ms) when the saved preferences arrive after the page loaded. It is visibility: hidden, so it cannot flicker anything behind the glass, which is what the test protects. Only animations whose target is visible (checkVisibility) count now.

Evidence. Before (current dev, my run): red in chromium-1440, webkit-1440, webkit-390. After: green in chromium-1440, chromium-390, webkit-1440, webkit-390 (one worker, slot lock).

🤖 Generated with Claude Code

Part of #325 (glass, "an animation at rest"). A test fix; the product behaves as intended. **Two causes**, both in `apps/web/e2e/glass.spec.ts`: 1. chromium-1440 failed on the first look with `row-in ... li fresh`. A row made in the last 4 s glows as it appears (`NoteList`: `fresh` is `Date.now() - created < 4000`, by the clock). The test seeded its note, waited 4.5 s, then opened the app, and that first visit creates today's note, a new row. Fix: visit once, then wait the 4.5 s (a wait on the clock because the clock decides it, commented), and a 60 s timeout for WebKit's software drawing of four looks. 2. webkit-1440 and webkit-390 failed with `transition on squish md ... on`. Settings stays mounted, hidden, under Notes (#173); its "Photos from Unsplash" switch eases its colour (320 ms) when the saved preferences arrive after the page loaded. It is `visibility: hidden`, so it cannot flicker anything behind the glass, which is what the test protects. Only animations whose target is visible (`checkVisibility`) count now. **Evidence.** Before (current dev, my run): red in chromium-1440, webkit-1440, webkit-390. After: green in chromium-1440, chromium-390, webkit-1440, webkit-390 (one worker, slot lock). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
glass.spec: look at the app at rest, not at today's note arriving or hidden switches settling (#325)
Some checks failed
CI / web (pull_request) Failing after 25s
CI / server (pull_request) Successful in 26s
CI / rust (pull_request) Successful in 1m47s
a1884b107b
The first visit makes today's note, a row that glows for 4 s by the clock, so the first look
caught its row-in. Visit once, then wait the 4 s. And Settings, mounted hidden under Notes,
eases its switches' colour when the saved preferences arrive: only animations that can be seen
count, as the test is about what moves behind the glass.

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:57 +00:00
Some checks failed
CI / web (pull_request) Failing after 25s
CI / server (pull_request) Successful in 26s
CI / rust (pull_request) Successful in 1m47s

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