Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add E2E testing framework #98

Merged

Conversation

jescalada
Copy link
Collaborator

@jescalada jescalada commented Jun 10, 2024

This PR is for G-Research/fasttrackml#1200 (G-Research/fasttrackml#1273).

The CI/CD pipeline is set to run a dev environment to execute the tests. I'm not sure if we should be building and running the built version instead.

Note that as of yet, there is no DB file set up. Any tests involving actual values being input and checked will likely fail.

Changelog

  • Add Playwright for writing and executing E2E tests
  • Add playwright.yml for GitHub CI
  • Add Dashboard.spec.ts with rudimentary tests for the dashboard page
  • Update README with testing instructions

Screenshots

On tests passing:
image

On tests failing:
image

@jescalada jescalada self-assigned this Jun 10, 2024
@jescalada jescalada requested a review from suprjinx June 17, 2024 15:54
@jescalada jescalada merged commit 9373a93 into G-Research:release/v3.17.5 Jun 19, 2024
4 checks passed
vinayan3 pushed a commit to vinayan3/fasttrackml-ui-aim that referenced this pull request Aug 28, 2024
* Add playwright to project

* Add playright CI workflow

* Add rudimentary test for Dashboard

* Move playwright into base directory

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Fix bad yml

* Add wait-on for dev server pipeline

* Add failing test to check pipeline

* Remove failing test

* Add tests for dashboard quick navigation buttons

* Remove example test and add to readme

* Update playwright.yml
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.

Add Playwright for E2E testing and sample test SPIKE: strategy for driving front end browser tests
2 participants