Skip to content

Comments

Migrate from cypress to playwright#3325

Open
rBangay wants to merge 17 commits intomainfrom
migrate-to-playwright
Open

Migrate from cypress to playwright#3325
rBangay wants to merge 17 commits intomainfrom
migrate-to-playwright

Conversation

@rBangay
Copy link
Contributor

@rBangay rBangay commented Feb 17, 2026

What does this change?

Migrates our mocked integration and end to end tests over from cypress to playwright.

How has this change been tested?

There are loads of playwright tests!

How can we measure success?

All the above tests pass

@rBangay rBangay requested a review from a team as a code owner February 17, 2026 20:44

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 3 days ago

To fix the problem, explicitly restrict the GITHUB_TOKEN permissions used by this workflow. Since the workflow only needs to read repository contents (for checkout and downloaded artifacts) and interact with caching and artifacts (which do not require repository write access), we can safely set contents: read as a minimal starting point. If in future the workflow needs additional scopes (for example, id-token: write for OIDC), they can be added explicitly.

The cleanest, non‑functional change is to add a permissions: block at the root of .github/workflows/playwright-mocked.yml, right after the on: section and before jobs:. This will apply to all jobs in the workflow (there is only one job, playwright-mocked). We’ll set:

permissions:
  contents: read

No other code changes, imports, or new methods are required because this is a GitHub Actions YAML configuration change only, and it does not alter the behavior of any steps—only the token’s allowed capabilities.

Suggested changeset 1
.github/workflows/playwright-mocked.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/playwright-mocked.yml b/.github/workflows/playwright-mocked.yml
--- a/.github/workflows/playwright-mocked.yml
+++ b/.github/workflows/playwright-mocked.yml
@@ -1,6 +1,8 @@
 name: playwright-mocked
 on:
   workflow_call:
+permissions:
+  contents: read
 jobs:
   playwright-mocked:
     name: Playwright mocked tests
EOF
@@ -1,6 +1,8 @@
name: playwright-mocked
on:
workflow_call:
permissions:
contents: read
jobs:
playwright-mocked:
name: Playwright mocked tests
Copilot is powered by AI and may make mistakes. Always verify output.
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

@rBangay rBangay added run_tests Run Cypress & Chromatic and removed run_tests Run Cypress & Chromatic labels Feb 18, 2026
@rBangay rBangay force-pushed the migrate-to-playwright branch from 2ebe396 to eda9eea Compare February 18, 2026 15:59
@rBangay rBangay added the enhancement New feature or request label Feb 18, 2026
@rBangay rBangay added the feature Departmental tracking: work on a new feature label Feb 18, 2026
@rBangay rBangay added run_tests Run Cypress & Chromatic and removed run_tests Run Cypress & Chromatic labels Feb 19, 2026
another playwright git workflow yml mocked change to wait for the same healthcheck endpoints as the cypress yml file was
@rBangay rBangay added run_tests Run Cypress & Chromatic and removed run_tests Run Cypress & Chromatic labels Feb 19, 2026
@rBangay rBangay removed the run_tests Run Cypress & Chromatic label Feb 19, 2026
@rBangay rBangay added the run_tests Run Cypress & Chromatic label Feb 19, 2026
…over from the old cypress tests to the playwright ones
@rBangay rBangay added run_tests Run Cypress & Chromatic and removed run_tests Run Cypress & Chromatic labels Feb 20, 2026
…ssword/code routes. Ensures that the HTTPCache is not used if this is the second or nth time that make reset password requests

Add a client side useEffect hook to reload the /reset-password/email-sent page if it detects that the page load/show is a result of the BFCache eg as a result of someone pressing the browsers back button. This should make sure that the correct content is rendered to the user

Add a default timeout of 30 seconds for mailosaor sent emails

On the reset passcode test, ensure that the code is 6 characters long, padded if nesacery
@rBangay rBangay added run_tests Run Cypress & Chromatic and removed run_tests Run Cypress & Chromatic labels Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature Departmental tracking: work on a new feature run_tests Run Cypress & Chromatic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant