Skip to content

Auth-page tests for the login redesign release (DataSpaceKeycloakTheme#46) - #390

Merged
saqibmanan merged 6 commits into
CIfrom
kc-redesign-release-tests
Nov 26, 2026
Merged

saqibmanan merged 6 commits into
CIfrom
kc-redesign-release-tests

Conversation

@saqibmanan

@saqibmanan saqibmanan commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Brings the Keycloak auth-page tests in line with the login redesign (CivicDataLab/DataSpaceKeycloakTheme#46) and the decisions taken for its release.

Merge right after the redesigned theme is live on prod, not before. Until then the removed known-failure entries would fail dev smoke runs.

  • known_failures.txt: drop the 12 test_con_auth_pages entries the redesign fixes.
  • Footer and mobile legal links: expect Privacy only. Terms & Conditions and Legal are covered by the Privacy page.
  • Register consent: expect "Privacy Policy" only, for the same reason.
  • Register fields: first and last name stay (the dashboard builds its links from the first name). The password fields and the "Password must contain" checklist only appear once the realm's registration flow asks for a password, so those two tests are strict xfail until the realm change (DataSpaceKeycloakTheme#44, Install the Claude GitHub App so the test-coverage routine can push #41). When it lands they XPASS and the markers come off.
  • Registration flow: fill() types a password when the realm shows the field, so test_con_registration keeps working after the realm change.
  • Forgot password: request_reset waits for the next page before reading its heading (it was flaky on the new theme).

Validation: see the comment below for the local run against the PR #46 theme image.

@saqibmanan saqibmanan self-assigned this Nov 26, 2026
@saqibmanan

Copy link
Copy Markdown
Contributor Author

Validation

Local Keycloak 26.7.0 running the PR #46 theme image, built from DataSpaceKeycloakTheme dev @ 1b4e69a. The realm is the DataSpace export with Verify email on and Mailpit as SMTP. Suites: test_con_auth_pages.py + test_con_registration.py.

Realm state Result
A. Password set after email verification (prod today) 29 passed, 2 xfailed
B. Password on the register form (after the realm change) 29 passed, 2 XPASS(strict) → shown as failed, the signal to remove AWAITS_REALM_PASSWORD
Prod auth.civicdatalab.in, old theme, read-only 8 failed (#32 ×2, #33, #39 ×2, #40 ×2, #43 mobile), 18 passed, 2 xfailed

Red proof for the fill() change: on realm B, the old fill() fails 2 of the 3 registration tests; the new one passes all 3.

Also fixed: request_reset read the heading before the next page loaded, so test_request_shows_check_your_email was flaky on the new theme (1 failure in 3). It now waits for the document to be replaced: 6/6 clean runs without retries.

Theme jar from this build: 3,882,432 bytes, under the deploy guard's 4,000,000.

Realm note: on Keycloak 26.7, Password Validation only puts the password on the register form when Verify email is off, or when the step's setting "always set password on register form" is on. With Verify email on (as on prod), setting the step to Required alone keeps the password after verification. Checked in RegistrationPassword.isVerifyEmail and locally.

@saqibmanan
saqibmanan marked this pull request as ready for review November 26, 2026 12:11
@saqibmanan
saqibmanan merged commit 30aeef1 into CI Nov 26, 2026
2 of 4 checks passed
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