Repository navigation
web: e2e tests for user offboarding - #24369
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ 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 @@
## main #24369 +/- ##
=======================================
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-238266f5989a24ecc4f75d2d48a1230ad9af8900
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-238266f5989a24ecc4f75d2d48a1230ad9af8900Afterwards, run the upgrade commands from the latest release notes. |
ec91885 to
af23816
Compare
af23816 to
c3a907b
Compare
c3a907b to
98fe4fb
Compare
98fe4fb to
73753f4
Compare
73753f4 to
6782436
Compare
0e18639 to
46dbbf1
Compare
Adds web/test/browser/310-user-offboarding.test.ts, covering scheduling, listing, cancelling, rescheduling, bulk cancellation, and execution of user offboardings, plus the audit events they emit. Carried over from dominic/user-offboarding-e2e and reconciled with the UI that actually merged. Fixes needed to make the suite pass: - Scope field interactions to the modal wrapper, not the `dialog` element. `ak-forms-modal`/`ak-forms-confirm`/`ak-forms-delete-bulk` slot their content into `ak-modal`, whose `<dialog>` lives in a shadow root, so the dialog is not a DOM ancestor of any field and role queries scoped to it matched nothing at all. - Match the pending-offboarding trigger by text. Its label sits inside a `pf-tooltip`, which keeps it out of the button's accessible name. - Address the Active row from its `dt` across to the paired `dd`; the `term` role does not take its name from content. - Address the System Tasks page by element, since it renders an unnamed `<main>` unlike the table pages. - Raise the timeout on the two execution tests, which wait for a schedule to fall due, and pin their scheduled time immediately before scheduling so setup cannot push it into the past. - Reload between attempts when waiting for the completed status; the list does not refetch when an unchanged search query is re-submitted. Signed-off-by: Dominic R <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
46dbbf1 to
238266f
Compare
Details
What does this PR change?
Adds
web/test/browser/310-user-offboarding.test.ts, covering scheduled user offboarding end to end:This branch previously carried the whole offboarding feature. That has since merged into
main, so it has been rebased down to just the test file, and stacked on the user switching e2e branch.Why is this change needed?
Offboarding shipped without browser coverage.
How was this tested?
npx playwright test 310-user-offboardingagainst a local instance with a valid enterprise license: 7 tests green across two consecutive runs.The inherited tests were written against an earlier iteration of the offboarding UI and did not pass. What had to change:
dialogelement.ak-forms-modal/ak-forms-confirm/ak-forms-delete-bulkslot their content intoak-modal, whose<dialog>lives in a shadow root — so the dialog is not a DOM ancestor of any field, and role queries scoped to it matched nothing. This is worth knowing for any test touching these older slot-based modals.pf-tooltip, whose shadow root keeps it out of the button's computed accessible name.dtacross to the paireddd. The ARIAtermrole does not take its name from content, sogetByRole("term", { name: "Active" })matches nothing.<main>unlike the table pages.Linked issues
Closes #24763
Co-Authored-By: Claude Opus 5 [email protected]
🤖 Generated with Claude Code