Skip to content

Scott/qae 829/update login validation - #93

Merged
Foscottl-TP merged 3 commits into
developfrom
scott/QAE-829/UpdateLoginValidation
Aug 31, 2026
Merged

Scott/qae 829/update login validation#93
Foscottl-TP merged 3 commits into
developfrom
scott/QAE-829/UpdateLoginValidation

Conversation

@Foscottl-TP

Copy link
Copy Markdown
Contributor

Updates to

  • Bring Login Validation tests into modern test formatting
  • Move test to appropriate parent file (clinician creds = clinician test(s))
  • Fixed error not being picked up after incorrect password

Move Login-Validations.spec.ts into tests/clinician as Clinician-Login-Validations.spec.ts. Prefix each test title with "Clinician - " and remove TEST_TAGS.WIP from the test tag arrays. No functional test logic was changed.
Expose usernameError and passwordError locators on LoginPage and use existing page-object locators (usernameInput, submitButton) across clinician login validation tests instead of raw page selectors. Tests now assert error visibility via the page object and update the expected password error text and test detail to reflect "Invalid username or password." This centralizes selectors and improves test clarity and maintainability.
Convert clinician login specs to clearer Given/When/Then style: add explicit step comments, rename test.step titles to BDD phrasing, and add descriptive step.detail metadata. Replace "username" wording with "email" in messages and details, and clarify error assertions (no-account and invalid-credentials cases). These changes improve readability and make test intent and reporting more explicit.
Copilot AI balanced review requested due to automatic review settings August 31, 2026 18:48

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

Modernizes clinician login validation tests, relocates them to the clinician suite, and adds reusable error locators.

Changes:

  • Restructures tests using Given-When-Then steps.
  • Moves clinician login tests from the personal suite.
  • Adds username and password error locators.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/personal/Login-Validations.spec.ts Removes misplaced clinician tests.
tests/clinician/Clinician-Login-Validations.spec.ts Adds reformatted clinician login tests.
page-objects/LoginPage.ts Adds field-level error locators.

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

@Foscottl-TP

Copy link
Copy Markdown
Contributor Author

LGTC. Merging.

@Foscottl-TP
Foscottl-TP merged commit 6ebed8f into develop Aug 31, 2026
3 checks passed
@Foscottl-TP
Foscottl-TP deleted the scott/QAE-829/UpdateLoginValidation branch August 31, 2026 19:58
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