Commit 99efdfea authored by Maxime Hilberer's avatar Maxime Hilberer Committed by Mathieu Giraud
Browse files

doc added

parent 49ce8b48
Pipeline #243846 failed with stages
in 17 minutes and 6 seconds
......@@ -556,3 +556,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