Settings: section screenshot fixture sends removed appearance field #1259

Open
opened 2026-10-06 23:51: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 real appearance API accepts the selected scheme and the test captures the registered Settings routes.

Actual: the fixture sends {"auto_scheme":{"mode":"light","location":null}} to PUT /api/v1/appearance, which returns 422. AutoSchemeSettings denies unknown fields and accepts only mode, so the screenshot loop stops before the first Settings route.

Evidence: /home/kayg/Developer/calternal-wt/bash-core/target/tmp/settings-cards-422.txt; contract at crates/calternal-server/src/appearance.rs.
Severity: minor.

Steps: 1. Build `apps/web` and a local server. 2. Run `bun e2e/settings-cards-402.mjs`. Expected: the real appearance API accepts the selected scheme and the test captures the registered Settings routes. Actual: the fixture sends `{"auto_scheme":{"mode":"light","location":null}}` to `PUT /api/v1/appearance`, which returns 422. `AutoSchemeSettings` denies unknown fields and accepts only `mode`, so the screenshot loop stops before the first Settings route. Evidence: `/home/kayg/Developer/calternal-wt/bash-core/target/tmp/settings-cards-422.txt`; contract at `crates/calternal-server/src/appearance.rs`. 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#1259
No description provided.