Admin: auth flow expects a success toast suppressed by policy #1276

Open
opened 2026-10-07 00:31:06 +00:00 by kayg · 0 comments
Owner

Steps:

  1. Run bun e2e/auth.mjs.
  2. Open Admin → Sign-in and enable Open signup.

Expected by the existing E2E: a success message says “Anyone can now create an account.”

Actual: SignInGroup.svelte calls toast({ policy: 'drop', ... }) on success. The toast store intentionally suppresses calls with policy: 'drop', so the message does not appear and the E2E times out. This is an E2E expectation mismatch; the current product path updates the switch and server setting without a success toast.

Evidence: auth E2E timeout at apps/web/e2e/auth.mjs:344; policy: 'drop' handling in apps/web/src/lib/stores/toasts.svelte.ts.
Severity: minor.

Steps: 1. Run `bun e2e/auth.mjs`. 2. Open Admin → Sign-in and enable Open signup. Expected by the existing E2E: a success message says “Anyone can now create an account.” Actual: `SignInGroup.svelte` calls `toast({ policy: 'drop', ... })` on success. The toast store intentionally suppresses calls with `policy: 'drop'`, so the message does not appear and the E2E times out. This is an E2E expectation mismatch; the current product path updates the switch and server setting without a success toast. Evidence: auth E2E timeout at `apps/web/e2e/auth.mjs:344`; `policy: 'drop'` handling in `apps/web/src/lib/stores/toasts.svelte.ts`. 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#1276
No description provided.