Commit 7a148552 authored by Maxime Hilberer's avatar Maxime Hilberer Committed by Mikaël Salson

doc added

parent 1a940187
Pipeline #153585 passed with stages
in 11 minutes and 18 seconds
......@@ -512,3 +512,72 @@ webpage.
If you have to launch `irb` on a remote server without X (only using `Xvfb`)
you may be interested to use the [redirection over SSH](https://en.wikipedia.org/wiki/Xvfb#Remote_control_over_SSH).
### Functional with Cypress
1. Architecture
The Cypress directory path : `browser/test`
It contains 3 folders needed by Cypress to compile
- Integration
Contains the test files/scripts
- Fixtures
Contains the extra files needed for the tests, such as files to test uploads etc.
- Support
Used to add plugins and custom functions
2. Installation
The following instructions are for Linux (you need npm installed):
1. Make the project
Go to browser directory
```
cd browser
```
Compile the icons
``` bash
make icons
```
2. Run Vidjil on localhost
Install serve
```
npm install -g serve
```
Run Vidjil on any local port (here localhost:8000)
```
serve -s --listen 8000 &
```
3. Install Cypress and its dependencies
Go to test directory
```
cd test
```
Install Cypress
```
npm install cypress
```
Install dependencies and node modules
```
npm ci
```
3. Run console tests
```
npx cypress run --browser chrome
```
3 possible browsers : chrome, firefox, electron (default)
4. Open Cypress in a browser
```
npx cypress open
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment