Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 2146eb9f authored by flothoni's avatar flothoni
Browse files

cypress; Use gitlab variable to test

parent 99a466fc
Pipeline #260829 failed
......@@ -8,24 +8,7 @@ before_script:
stages:
- test_tools
- test_quality
- test_unit
- deploy_review
- test_germlines
- test_functional
- test_cypress_client
- test_tutorial
- test_tutorial_server
- test_shouldvdj
- test_functional_external
- coverage
- tgz_release
- valgrind_unit
- valgrind_functional
- multiple_tests
- benchmark
- publish_release
- deploy_prod
# Anchors
......@@ -642,11 +625,22 @@ stop_deploy_review_server:
- make -C doc analysis-example || true
# Cypress
- echo -e "Run cypress with browser; $CYPRESS_PATH"
- docker run -v $PWD/$CYPRESS_PATH:/app/cypress -v $PWD/browser/test/data:/app/cypress/fixtures/data -v $PWD/doc:/app/cypress/fixtures/doc -v $PWD:/app/vidjil -v "$PWD/docker/ci/cypress_script.bash":"/app/script.bash" --env BROWSER=$BROWSER --env HOST=$HOST --env PROJECT=$PROJECT "vidjilci/cypress_with_browsers:latest" bash script.bash
- >
docker run
-v $PWD/$CYPRESS_PATH:/app/cypress
-v $PWD/browser/test/data:/app/cypress/fixtures/data
-v $PWD/doc:/app/cypress/fixtures/doc
-v $PWD:/app/vidjil
-v "$PWD/docker/ci/cypress_script.bash":"/app/script.bash"
--env BROWSER=$BROWSER
--env HOST=$HOST
--env PROJECT=$PROJECT
--env CI_PASSWORD_TEST=$CI_PASSWORD_TEST
--network="host"
"vidjilci/cypress_with_browsers:latest" bash script.bash
variables:
BROWSER: electron
CYPRESS_PATH: browser/test/cypress
PROJECT: ./browser/test/
HOST: local
artifacts:
reports:
......
......@@ -18,7 +18,7 @@ Cypress.Commands.add('login', (host) => {
cy.get('#auth_user_email')
.type('test@vidjil.org')
cy.get('#auth_user_password')
.type('xxx')
.type(Cypress.env('CI_PASSWORD_TEST'))
cy.get('#submit_record__row > .w2p_fw > input').click()
cy.waitForUpdates()
} else if (host=="app"){
......
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