Testing Strategy
How we test our front end
Last updated
Was this helpful?
How we test our front end
Last updated
Was this helpful?
When a PR is submitted, a series of tests will be run with Github actions. It is fine to just submit your PR and let the tests run on Github. However, if the tests fail, you may need to run the tests locally to investigate what's going on, then either fix the tests, or fix your code.
is a frontend test framework that is used on part of Portal.
To run Cypress tests locally, you need two shell windows.
Shell #1
The following will run the portal/game on local server.
Shell #2
This will run the Cypress tests in the terminal.
If you want to view the tests as they run using Cypress' test runner window, you can run:
Selenium is a frontend test framework that is used in Rapid Router and in Portal. We aim to gradually migrate Selenium tests to Cypress.
To run Selenium tests you need to install chromedriver. Please check here on for your OS.
Similar with Cypress, it will launch a browser windows and you should be able to see a series of frontend actions.