Skip to content

Comments

CODE RUB: Update Playwright tests#188

Merged
davidhayes03 merged 1 commit intomainfrom
users/davidhayes03/code-rub-playwright-updates
Jan 29, 2026
Merged

CODE RUB: Update Playwright tests#188
davidhayes03 merged 1 commit intomainfrom
users/davidhayes03/code-rub-playwright-updates

Conversation

@davidhayes03
Copy link
Contributor

@davidhayes03 davidhayes03 commented Jan 29, 2026

CLOSES AB#27411

Copilot AI review requested due to automatic review settings January 29, 2026 12:44
@github-actions github-actions bot added the CODE RUB The code rub category is for small changes (not for bug fixes) label Jan 29, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Playwright end-to-end tests to align with changes in the application's UI, specifically updating test selectors and adding support for Power of Attorney (POA) workflow testing.

Changes:

  • Updated test selectors from role-based to test-id based selectors for more reliable test targeting
  • Added new helper functions to support POA field population in tests
  • Modified test expectations to match new application flow and URL patterns

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
searchbynhsnumber.spec.ts Updated NHS number input selectors and added POA field population to tests
homepage.spec.ts Changed button selector to use test-id and updated expected navigation URL
helper.ts Added new helper functions for POA button click and field population
home.tsx Added test-id attributes to Start buttons for test targeting
searchByNhsNumber.tsx Added test-id attribute to Search button for test targeting

@davidhayes03 davidhayes03 merged commit dadd298 into main Jan 29, 2026
9 checks passed
@davidhayes03 davidhayes03 deleted the users/davidhayes03/code-rub-playwright-updates branch January 29, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CODE RUB The code rub category is for small changes (not for bug fixes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants