Settings: section screenshot fixture bypasses user-scoped storage #1261

Open
opened 2026-10-06 23:54:56 +00:00 by kayg · 0 comments
Owner

Steps:

  1. Build apps/web and a local server.
  2. Run bun e2e/settings-cards-402.mjs.

Expected: the uploaded wallpaper is selected in the Settings screenshot context and the route sweep captures its real surfaces.

Actual: openRoute() times out waiting for #app-background[data-kind="image"][data-ready]. The screenshot fixture writes calternal.settings and calternal.backgrounds through unscoped localStorage.setItem, while the current settings store reads User-scoped values through userStorage. The test harness provides installUserStorageTestSeam for this purpose. The fixture leaves the selected family/background unset, so the screenshot gate never observes the uploaded wallpaper.

Evidence: /home/kayg/Developer/calternal-wt/bash-core/target/tmp/settings-cards-background-timeout.txt; fixture in apps/web/e2e/settings-cards-402.mjs; storage contract in apps/web/e2e/harness.mjs.
Severity: minor.

Steps: 1. Build `apps/web` and a local server. 2. Run `bun e2e/settings-cards-402.mjs`. Expected: the uploaded wallpaper is selected in the Settings screenshot context and the route sweep captures its real surfaces. Actual: `openRoute()` times out waiting for `#app-background[data-kind="image"][data-ready]`. The screenshot fixture writes `calternal.settings` and `calternal.backgrounds` through unscoped `localStorage.setItem`, while the current settings store reads User-scoped values through `userStorage`. The test harness provides `installUserStorageTestSeam` for this purpose. The fixture leaves the selected family/background unset, so the screenshot gate never observes the uploaded wallpaper. Evidence: `/home/kayg/Developer/calternal-wt/bash-core/target/tmp/settings-cards-background-timeout.txt`; fixture in `apps/web/e2e/settings-cards-402.mjs`; storage contract in `apps/web/e2e/harness.mjs`. Severity: minor.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
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-v0#1261
No description provided.