Repository navigation
web: e2e tests for account lockdown - #24766
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dominic/user-offboarding-e2e #24766 +/- ##
=============================================================
Coverage 91.89% 91.89%
=============================================================
Files 1171 1171
Lines 75653 75653
Branches 4056 4056
=============================================================
Hits 69522 69522
Misses 6089 6089
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-a6ec5d5822b03a242328ab2dae262ad75d5d1549
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-a6ec5d5822b03a242328ab2dae262ad75d5d1549Afterwards, run the upgrade commands from the latest release notes. |
fa7ef95 to
06eeabf
Compare
06eeabf to
083044c
Compare
083044c to
3bc8c26
Compare
3bc8c26 to
cc856c6
Compare
cc856c6 to
d7821c2
Compare
Adds web/test/browser/320-account-lockdown.test.ts, covering the enterprise account lockdown feature from both entry points: - An administrator locking another account from the user details page. - A user locking their own account from the Security tab of user settings, which deletes their session and hands them to the stage's completion flow. - The action being hidden for the administrator's own account. Each case proves the lockdown took effect rather than inferring it: the target signs in successfully beforehand, and afterwards the account reads inactive and its credentials are rejected. Nothing seeds a lockdown flow, and the feature is inert until a brand points at one, so test/blueprints/test-account-lockdown-flow.yaml supplies the flow, the stage, and the binding. The suite drives only the brand field an operator actually configures, and that hook is read-only once set so repeat runs do not race on the brand row. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Dominic R <[email protected]>
d7821c2 to
a6ec5d5
Compare
Details
What does this PR change?
Adds
web/test/browser/320-account-lockdown.test.ts, covering the enterprise account lockdown feature from both entry points:Each case proves the lockdown actually took effect rather than inferring it from the UI: the target signs in successfully beforehand, and afterwards the account reads inactive and its credentials are rejected.
Also adds
web/test/blueprints/test-account-lockdown-flow.yaml. Nothing seeds a lockdown flow, and the feature is inert until a brand points at one, so the blueprint supplies the flow, the stage, and the binding — includingself_service_completion_flow, without which the stage refuses to run a self-service lockdown because it deletes the caller's session. The suite drives only the brand field an operator actually configures.Why is this change needed?
Account lockdown had no browser coverage.
How was this tested?
npx playwright test 320-account-lockdownagainst a local instance with a valid enterprise license: 3 tests green, stable across--repeat-each=2.The
beforeAllthat points the brand at the lockdown flow is read-only once configured, so repeat runs don't race on the brand row — the describe is alsoserialfor the same reason.Linked issues
Closes #24764
Co-Authored-By: Claude Opus 5 [email protected]
🤖 Generated with Claude Code