Skip to content

EQS-1110: Add Playwright integration - #1963

Open
petechd wants to merge 29 commits into
mainfrom
add-playwright
Open

EQS-1110: Add Playwright integration#1963
petechd wants to merge 29 commits into
mainfrom
add-playwright

Conversation

@petechd

@petechd petechd commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What is the context of this PR?

Based on the PR in Census Runner: ONSdigital#82 by @ajmaddaford. This is functional tests migration to Playwright and Typescript. Like in the original PR, we preserve the existing behaviour while changing the automation framework. Compared to the Census Runner PR, these extra specs had to be added, since they didn't exist at the time of the fork:

  • tests/functional/spec/supplementary_data/supplementary_data.spec.js
  • tests/functional/spec/hub_and_spoke/hub_and_spoke_supplementary_data.spec.js
  • tests/functional/spec/launch_with_cir.spec.js

In the original PR some adjustments were made to prevent flakiness. So some tests slightly changed but the assertions should be the same.

How to review

Visually check the specs and reworked Makefile, generate_pages, pull_request.yaml (are all actions needed). Check if the Webdriver was completely removed. Use Andrew's PR as reference: ONSdigital#82.

Checklist

  • New static content marked up for translation
  • Newly defined schema content included in eq-translations repo

@petechd
petechd requested a review from a team as a code owner August 12, 2026 14:50
Comment thread .github/workflows/pull_request.yml Outdated

@ems-sato ems-sato left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice work, I think it looks really good. I added a couple of comments and I will try to go through it again as I might have missed more.
Another point I was going to add would be if it would be really helpful if we could update the README to reflect the tests changes and match with the new workflow.

Comment thread .github/workflows/pull_request.yml
Comment thread Makefile Outdated
Comment thread tests/functional/spec/jwt_helper.ts Outdated
Comment thread package.json
Comment thread package.json
Comment thread tests/functional/generate_pages.py Outdated

@ems-sato ems-sato left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, one last comment from me is that it would be good to update README to reflect the tests changes. Not a blocker so happy to approve.

@petechd

petechd commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Had to remove the division into projects in the .ts file (and README mention) as it was not compatible with shards, run all suites for every worker.

@petechd petechd changed the title Add Playwright integration EQS-1110: Add Playwright integration Sep 3, 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.

3 participants