Skip to content

Keycloak auth flows on the redesigned pages - #392

Merged
saqibmanan merged 6 commits into
CIfrom
kc-auth-flow-tests
Nov 26, 2026
Merged

saqibmanan merged 6 commits into
CIfrom
kc-auth-flow-tests

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

New tests/consumer/functional/test_con_auth_flows.py: end-to-end flows on the redesigned Keycloak pages (DataSpaceKeycloakTheme#46), against the realm as configured for the release: password on the register form, policy of 8 characters + 1 uppercase + 1 digit, and a user-writable termsAccepted.

Readonly (9). Nothing is posted that writes.

  • Register checklist: each rule ticks as it is met (4 cases).
  • Register: a weak password, mismatched confirmation, invalid email or empty form is stopped in the browser, with the right inline errors.
  • Sign-in: an invalid email is stopped in the browser.

Write (8). Throwaway qa-auto-*@example.invalid accounts, gated by keycloak_admin like test_con_registration, deleted in teardown. Not added to keycloak-tests.yml.

Framework: KeycloakAdmin can create a user, read attributes, sessions and required actions. The page objects gain checklist state, per-field errors, a real sign-in, and KeycloakUpdatePasswordPage.

Validation

  • Prod auth.civicdatalab.in: 17 passed. With test_con_auth_pages + test_con_registration in parallel (-n 4): 48 passed. 0 leftover qa-auto accounts afterwards.
  • Red proof on a local Keycloak 26.7 with the theme: making termsAccepted view-only and removing the uppercase rule fails the consent and checklist tests (7 failed, 10 passed).

Not automated: Google sign-in, linking and review profile need a real Google account.

@saqibmanan saqibmanan self-assigned this Nov 26, 2026
@saqibmanan
saqibmanan merged commit ce17ddf into CI Nov 26, 2026
2 checks passed
saqibmanan added a commit that referenced this pull request Nov 26, 2026
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