docs: seed drift, pretix skip observability, new-suite run books, current-state refresh

tests.md: new 'Full E2E Suite Status' opener -- suite is NOT green (213/42,
2026-10-19, exit 1); the pipe-through-tail trap that produced two false '0
failed' records; seed-drift mechanism (config.ts identities gone, reset.ts
UPDATE-only no-ops, logins hang); 11 failing families; admin-schedule
exonerated by the reverted-Schedule.tsx check; fix direction (upsert demo
identities, self-provision new specs). Four new run sections: llm-connection
(three-state verdict), tooltip containment (mutation-validated provenance),
CONV-MATERIAL-005 (self-contained fixture pattern), corrected counts
(sidecar 35, checkin-points 4).

pretix.md: 'Positions that never become registrations' -- the email+name
guard, the 118->115 grouping on production numbers, and the anonymous-Skipped
gap (QRJZN case study, sync_runs.skipped never sees client-side drops).

next-steps.md: new 'Known work (open as of 2026-10-19)' section (seed drift,
skip observability, QRJZN operator action); stale cross-cutting items marked
done (subdomains live, printing shipped after the 'skipped by decision'
note, testing exists); Open decisions cleared; current-state blockquote
extended through the 2026-10-19 round.
This commit is contained in:
Lago committed 2026-10-19 22:39:23 +02:00
1 parent d24f0ebb88
commit b7c2abb73b
3 files changed
+227 -22

No files matched your search

+160 -6
View File
@@ -1,3 +1,154 @@
# Full E2E Suite Status
The suite is **31 spec files / 255 tests** (`npx playwright test --list`), and it
is **not currently green** — the next person to run it will hit this
immediately, so it is recorded before any run list: a clean serial run on
2026-10-19 gave **213 passed, 42 failed** (exit code **1**).
```sh
cd e2e
npx playwright test --workers=1 > /tmp/full.log 2>&1; echo EXIT=$?
# then read /tmp/full.log
```
> **Never read a full-suite result through a pipe.** `... | tail -3` reports
> **tail's** exit code — `0` — even when Playwright failed, and it shows only
> the end of the output, where the failed-tests list is easy to misread as
> progress. This burned the team twice on 2026-10-19 and produced two false
> "0 failed" records before the correction; see the
> [release record](../releases/2026-10-19.md). Redirect to a file, capture
> `echo EXIT=$?`, then read the file.
Run **one full suite at a time**: every spec shares a single Postgres, and two
suites racing produce phantom failures.
The 42 failures are **pre-existing seed drift, not regressions**. The
mechanism: `e2e/src/helpers/config.ts` hardcodes the demo identities of the
*original* seed (`[email protected]`, `[email protected]`,
`[email protected]`, …), and the pretix import replaced the attendee
data on this database — only 1 of 5 sampled seed contacts still exists.
`e2e/src/helpers/reset.ts` then only **UPDATE**s those rows (assigning the
speaker's `qr_token`, re-hashing the auth password); it inserts nothing except
the sponsor, which was never in the seed either. An UPDATE against a missing
row affects **0 rows and raises nothing** — the reset passes silently and the
spec hangs in `login()` → `waitForAdmitted()`, because the login can never
succeed for a contact that does not exist. Each attempt burns the full timeout,
which is why the failures sprawl across 11 files: connections (8),
checkin-attendee (6), speaker-material (5 — every test except the
self-contained `CONV-MATERIAL-005`), profile-visibility (5), feedback (5),
session-checkin (3), e2e-journeys (6), sponsor (1), leaderboard-live (1),
attendee-navigation (1), admin-schedule (1).
The one failure that could plausibly have been recent work — admin-schedule's
"permission and network failures keep the visible schedule intact", suspected
of the silent-poll refactor — **fails identically when `Schedule.tsx` is
replaced with its pre-silent-refresh version**. Same failure, same error; the
refactor is exonerated. The check was run on 2026-10-19 as recorded in the
[release record](../releases/2026-10-19.md); it needs no re-verification, and
re-running it would mean temporarily reverting a source file.
**Fix direction (known work, not yet done):** make `reset.ts` *provision* the
demo contacts, registrations and auth users — upsert them the way
`ensureSponsor()` already does — instead of assuming the seed rows still exist.
The specs that provision themselves are exactly the ones that survived the data
change: `checkin-points.spec.ts` and `CONV-MATERIAL-005` insert their own
fixtures and delete them in a `finally`, and both passed in the same run that
produced the 42 failures. Until `reset.ts` is converted, new real-backend
specs should follow that self-provisioning pattern rather than the shared
identities.
# LLM Connection Test Regression
No migration is involved — the change is how the Settings "Validate AI
connection" verdict reads the reasoning-token counter. Run:
```sh
npm test --prefix apps/sidecar # 35 unit tests, 6 of them llm-test
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- llm-connection-test.spec.ts --project=chromium
```
The production gateway (ai.lago.dev) answers with
`completion_tokens_details: {}` — it reports **no** reasoning counter at all.
Treating "not reported" as "still thinking" would tell an admin that a working
configuration is broken, so the verdict keeps three reasoning states apart, and
`llm-connection-test.spec.ts` (**6 tests**, API-mocked — it stubs
`**/sidecar/llm-settings` and `**/sidecar/llm-test`) pins each one on the real
Settings screen: a reported `reasoning_tokens: 0` renders the green
`.llm-test-result.good` with no warning; a reported `null` renders the new
neutral `.llm-test-result.neutral` — no warning, a headline that does **not**
contain "still thinking", and copy saying the endpoint does not report a
counter instead of asserting thinking is off; a reported non-zero renders
`.warn` with the warning and the token count. A failed test (`ok: false`)
renders `.bad` with the provider's error and **no** reasoning line at all, and
the button stays usable.
The spec also guards two states that are easy to get wrong: the **dirty-form
lock** (the button is disabled while `#llm-endpoint` differs from the stored
settings — the API key never reaches the browser, so only saved settings can
be exercised — and re-enables after the edit is reverted) and the **in-flight
state** (progress visible, button disabled, and exactly **1** request leaves —
a `POST` carrying the admin's `Bearer` token). The verdict contract itself is
unit-tested on the sidecar side: **35** tests in the suite, **6** of them
covering `llm-test`.
# Tooltip Containment Regression
No migration is involved. Run:
```sh
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- tooltip-containment.spec.ts --project=chromium
```
A tooltip is portal-rendered so a table's `overflow` cannot clip it — but that
never kept it inside the **viewport**: the card was centred on its trigger with
a fixed width, so every tooltip attached to a right-aligned control ran off the
right edge and its text was unreachable. That was the user-reported bug on the
Sessions "Generate AI Feedback Summary" tooltip; all six call sites benefit
from the shared `Tooltip` fix, which measures the laid-out card, clamps it into
the viewport, flips it below when there is no room above, and re-aims the arrow
after any sideways shift.
`tooltip-containment.spec.ts` (**4 tests**, API-mocked admin) asserts the
measured geometry rather than the implementation: the `.tip-card` rectangle is
fully inside the viewport on all four edges (`x >= 0`, `x + width <= viewport
width`, same for `y`), the card does not widen
`document.documentElement.scrollWidth`, and `.tip-arrow` still points at the
trigger after the card is pushed sideways. It runs on the Sessions summary
button at wide (**1280 px**), narrow (**700 px**) and short (**260 px** —
genuinely no room above, forcing the flip-below `.tip-below` placement)
viewports, and on the Registrations points-exempt marker at **1100 px**.
Provenance matters when reading these tests: they were validated by
**temporarily reverting the Tooltip fix — 3 of 4 fail on the old centring
code** — so they guard the real bug, not a decorative behaviour. Mock gotcha
recorded in the spec: the admin auth path reads the contact with
`maybeSingle()`, so the `?email=eq.…` route must answer a single **object** —
answering with an array silently drops the app to the login screen, which
looks exactly like a broken tooltip.
# Speaker Pending-Material Pill Regression
The red 📎 pill on Home opened its sheet, but tapping a session there only did
`go('agenda')` — dropping the speaker on the Agenda list to hunt for the very
talk the pill had just named. It now opens the shared `SessionDetail` sheet
over Home, the way "My picks today" already behaves, with the upload form
inside. No migration is involved. Run:
```sh
CONVIVO_BASE_URL=http://127.0.0.1:3000 npm test --prefix e2e -- speaker-material.spec.ts --grep CONV-MATERIAL-005 --project=chromium
```
`CONV-MATERIAL-005` (in `speaker-material.spec.ts`, **6 tests** in the file)
drives the real backend and is **self-contained**: it provisions its own
speaker on a real session that has no material — contact, registration,
`session_speakers` row and auth user — and deletes all four in a `finally`.
That matters because the §27/§28 demo speaker the rest of the spec family logs
in as belongs to the old seed and is gone since the pretix import; see
[Full E2E Suite Status](#full-e2e-suite-status). The test clicks the pill,
then the session in the "Pending material" sheet, and asserts the upload
notice and upload form are visible while the **Home tab is still active** —
the sheet opened in place, it did not navigate. Validated by mutation:
putting `go('agenda')` back makes the test fail.
# Front-Desk Gate + Badge Copies Regression
After applying `20261019110000_front_desk_gate_and_badge_copies.sql`, run the
@@ -96,9 +247,9 @@ asserts the toggle ON re-awards exactly what those rows justify (30), that a
second ON adds 0, that an off→on round trip restores 30 both times, and that a
staff contact's toggle removes 0 and adds 0.
`checkin-points.spec.ts` is the end-to-end proof against the **real** database,
which is what the original complaint needed (the scanner appeared not to award
the +10):
`checkin-points.spec.ts` (4 tests) is the end-to-end proof against the **real**
database, which is what the original complaint needed (the scanner appeared not
to award the +10):
- **CONV-PTS-001** the welcome check-in pays +10, the confirm sheet promises it
*before* the write, the result sheet says `+10 pts · now 10`, the registration
@@ -279,9 +430,12 @@ CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- feedback-ai-sum
The SQL fixture is rollback-only: eight assertions cover RLS, grants, deprecated
stub permissions, service-role persistence, admin/non-admin reads and cascades.
Unit tests cover provider payload privacy, settings-key redaction and retention,
scope isolation, empty feedback, errors, duplicate requests and private-address
rejection and multi-page snapshots. Eight API-mocked browser tests cover settings,
Unit tests (**35** in the suite today) cover provider payload privacy,
settings-key redaction and retention, scope isolation, empty feedback, errors,
duplicate requests and private-address rejection and multi-page snapshots, plus
the six `llm-test` verdict checks listed in
[LLM Connection Test Regression](#llm-connection-test-regression).
Eight API-mocked browser tests cover settings,
manual event/session generation, restored summaries, disabled states, pagination,
retry and desktop/mobile layouts.
These tests do not send real feedback to any LLM or send login emails.