Skip to content

Support Keycloak identity-first login flow - #92

Merged
Foscottl-TP merged 1 commit into
developfrom
scott/QAE-826/2FA-SetupFix
Aug 24, 2026
Merged

Support Keycloak identity-first login flow#92
Foscottl-TP merged 1 commit into
developfrom
scott/QAE-826/2FA-SetupFix

Conversation

@Foscottl-TP

Copy link
Copy Markdown
Contributor

Refactor LoginPage to handle the Keycloak identity-first (username→password) flow used by the app.

  • Replace role-based Playwright selectors with explicit Keycloak locators (#username, #password, #kc-login).
  • Rename properties to usernameInput, passwordInput, submitButton and remove deprecated email/next/login fields.
  • Implement staged login: wait for username page, submit, wait for password page, submit. Adds explicit waits (15s) to handle redirects to Keycloak.
  • Preserve viewport sizing and add a note about 2FA/TOTP being handled separately.

This makes the login helper robust to the two-step Keycloak flow and the reused submit button id across pages.

Pushing to develop to confirm in circleCI for full validation

Refactor LoginPage to handle the Keycloak identity-first (username→password) flow used by the app.

- Replace role-based Playwright selectors with explicit Keycloak locators (#username, #password, #kc-login).
- Rename properties to usernameInput, passwordInput, submitButton and remove deprecated email/next/login fields.
- Implement staged login: wait for username page, submit, wait for password page, submit. Adds explicit waits (15s) to handle redirects to Keycloak.
- Preserve viewport sizing and add a note about 2FA/TOTP being handled separately.

This makes the login helper robust to the two-step Keycloak flow and the reused submit button id across pages.
Copilot AI balanced review requested due to automatic review settings August 24, 2026 21:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the login page object for Keycloak’s two-step identity-first flow.

Changes:

  • Replaces legacy login locators with Keycloak element IDs.
  • Separates username and password submission with explicit waits.
  • Documents the flow and future 2FA handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread page-objects/LoginPage.ts
@Foscottl-TP
Foscottl-TP merged commit ffd2ce9 into develop Aug 24, 2026
3 checks passed
@Foscottl-TP
Foscottl-TP deleted the scott/QAE-826/2FA-SetupFix branch August 24, 2026 21:40
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.

2 participants