ghostguild-org/tests/server
Jennie Robinson Faber 4e1888ae8e
Some checks failed
Test / Notify on failure (push) Blocked by required conditions
Test / visual (push) Blocked by required conditions
Test / vitest (push) Successful in 10m59s
Test / playwright (push) Has been cancelled
fix(events): read allowIndividualEventTickets from series.tickets
The series-pass gate in register.post.js was checking
`series.allowIndividualEventTickets` at the top level, but the field
lives under `series.tickets.allowIndividualEventTickets` per the
Series schema. Top-level access was always undefined, so `!undefined`
always fired the pass check — blocking drop-in registration even when
an admin enabled `(requiresSeriesTicket=true, allowIndividualEventTickets=true)`.

The bug failed closed (overprotective), so no bypass was possible.
The existing test mirrored the bug by mocking the field at the top
level; updated the three mocks to nest it under `tickets` so the test
shape matches the real schema.
2026-04-20 19:25:24 +01:00
..
api fix(events): read allowIndividualEventTickets from series.tickets 2026-04-20 19:25:24 +01:00
config feat(contributions): rewrite server config as preset-based helpers 2026-04-19 18:12:44 +01:00
helpers Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
middleware Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
models test(admin): cover AdminAlertDismissal dismissedAt default 2026-04-08 11:03:31 +01:00
tasks feat(slack): add background job to detect Slack workspace joins 2026-04-09 22:32:48 +01:00
utils fix(events): enforce series-pass, hidden, and deadline gates 2026-04-20 19:03:34 +01:00
setup.js refactor: extract escapeRegex and validateTagSlugs server utils 2026-04-09 23:51:56 +01:00