Code for Life Community
  • ๐Ÿ’›Welcome
  • ๐Ÿ“…Release Notes
  • โค๏ธBecome a Contributor
  • ๐ŸชดIndustry Experience
  • ๐Ÿ†Wall of Fame
  • ๐Ÿ“ฆRepositories and Packages
  • ๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟNational Curriculum alignment
  • ๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟNational Curriculum alignment
  • โ„น๏ธGlossary
  • COMMUNICATIONS
    • ๐Ÿ“–Publications
  • ๐Ÿ—ž๏ธNewsletters
    • ๐ŸŽŠSpring 2025
    • ๐ŸŒทBett show 2025
    • ๐ŸŽ„December 2024
    • ๐ŸAutumn 2024
    • ๐ŸŒปSummer 2024
    • ๐ŸฐSpring 2024
    • โ„๏ธWinter 2024
    • ๐ŸŽ„December 2023
    • ๐ŸAutumn 2023
    • ๐ŸŒปSummer 2023
    • ๐ŸŒทSpring 2023
    • ๐ŸŽ„December 2022
    • ๐ŸAutumn 2022
    • ๐ŸŒปSummer 2022
    • ๐ŸŒทSpring 2022
    • ๐ŸŽ„December 2021
  • ๐ŸงฉNewsletter challenges
    • ๐Ÿค–Ocado Robot Debugging Challenge!
  • ๐Ÿค–Books of Robots
  • Community resource hub
    • ๐Ÿ’ปHow do Computers work?
    • ๐Ÿ”Safety online: Passwords and Security
    • ๐Ÿค–The World of Robotics
    • ๐ŸฆพCareers in technology
      • ๐Ÿ“ƒCareers posters
      • ๐Ÿ“ฝ๏ธCareer based videos
  • Software Developer Guide
    • ๐Ÿ’ปDev Environment Setup
    • ๐Ÿ”Code Promotion Strategy
    • ๐Ÿ’ฟBack End
      • โ„น๏ธOverview
      • โœ๏ธCoding Patterns
      • ๐ŸงชTesting Strategy
    • ๐Ÿ–ฑ๏ธFront End
      • โ„น๏ธOverview
      • โœ๏ธCoding Patterns
      • ๐ŸงชTesting Strategy
  • Links
    • Code Workspace
    • Visit our Site
Powered by GitBook
On this page
  • Running Cypress tests locally
  • Running Selenium tests locally

Was this helpful?

Export as PDF
  1. Software Developer Guide
  2. Front End

Testing Strategy

How we test our front end

PreviousCoding Patterns

Last updated 11 months ago

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.

Running Cypress tests locally

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.

./run

Shell #2

This will run the Cypress tests in the terminal.

yarn run cypress run

If you want to view the tests as they run using Cypress' test runner window, you can run:

yarn run cypress open

Running Selenium tests locally

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.

๐Ÿ–ฑ๏ธ
๐Ÿงช
Cypress
how to install