Skip to content

test(e2e): seed registration enabled in 37-disable-registration#802

Open
lane711 wants to merge 1 commit intomainfrom
lane711/fix-disable-registration-test
Open

test(e2e): seed registration enabled in 37-disable-registration#802
lane711 wants to merge 1 commit intomainfrom
lane711/fix-disable-registration-test

Conversation

@lane711
Copy link
Copy Markdown
Collaborator

@lane711 lane711 commented Apr 22, 2026

Summary

  • Adds a beforeAll to the "Registration when enabled (default)" describe block that explicitly POSTs registration.enabled: true to /admin/plugins/core-auth/settings before the default-assuming tests run.
  • Fixes persistent flakiness where the shared preview DB stayed in a disabled state if a prior test run died mid-suite before its finally cleanup re-enabled registration.

Why

Observed on the post-release doc commit (721108b) — PR Tests failed because curl -I /auth/register returned 302 to /auth/login?error=Registration%20is%20currently%20disabled. The "when enabled" tests had no setup and relied on default state that was no longer true on the shared preview.

Test plan

  • PR Tests workflow passes on this branch
  • 37-disable-registration.spec.ts Registration when enabled (default) tests pass

🤖 Generated with Claude Code

The "Registration when enabled (default)" tests assumed the preview DB
started in the default enabled state, but the shared preview environment
persists state across runs. If a prior run died mid-suite before its
`finally` re-enabled registration, the defaults-assuming tests failed
permanently. Add a `beforeAll` that explicitly enables registration.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant