Skip to content

Latest commit

 

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

End-to-end tests for Tournesol

An end-to-end tests suite, based on Cypress, for the platform Tournesol and the Tournesol browser extension.

Requirements

  • A local instance of Tournesol, as provided by dev-env, initialized with the default database only.
  • Node.js 18

Install the dependencies

yarn install --frozen-lockfile

Run the tests

yarn run cypress run

By default, Cypress will run the tests on Electron (based on Chromium). To run the tests in a specific browser installed on your system, use --browser :

yarn run cypress run --browser firefox

To launch the Cypress Test Runner UI:

yarn run cypress open

For more options see Cypress documentation

Testing the browser extension

Currently, the browser extension tests support only Chromium and Chrome, and need to be run in "headed" (windowed) mode.
The tests related to the browser extension will be skipped if these conditions are not met.

yarn run cypress run --browser chrome --headed