test(app): Add end-to-end test automation using Cypress #8081
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Added end-to-end test automation for the Opentrons run app using Cypress. Contains a total of 6 test suites and utilizes the ability to now open the app in a web browser. Was built around version 4.3.1 of the run app.
To run this manually, please ensure the Docker emulator is up and running, using
make docker-emulator
and already calibrated. You will also need to start the app in "external browser mode" prior to running the test automation usingmake external-browser-app
. The app will then be accessible via http:https://localhost:8090.Once that is done, kick off the test automation with
make test-e2e
. The test automation can take about 7-8 minutes to fully execute all 6 test suites due to the second test suite taking 6-7 mins to execute 4 different protocols on the emulator.Changelog
Changelog:
Review requests
Those with more experience using GitHub actions, please review the integration with GitHub actions (app-test-build-deploy.yaml) to ensure it is set up correctly.