data.e2e's account delete fails on a database with no other admin #287
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#287
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every e2e user is created as an admin (
e2e/support/test-user.ts). On a freshly reset dev database there's no owner account, sodata.e2e.ts's user is the only admin, and "Delete everything" is refused by the last-admin guard (#88): "This is the last admin. Make someone else an admin first." The flow passes only when the database already holds another admin (afterdb:pull). CI doesn't run Playwright, so nobody saw it.Fix: let
testUsercreate a plainuser, and use that indata.e2e.ts. Deleting your own account is a user's flow anyway.