stable

Clone or download

Read-only

request #11219: Introduce e2e testing with cypress

Current whole platform integration tests rely on selenium[1]. However sometimes the tests fail without any obvious reasons. In order to mitigate those false positive, we propose to use cypress[1] instead of selenium. Rumors says that cypress is more reliable. To confirm that we propose to have both systems during a certain amount of time to see how both behave. If it is a success, then we will remove selenium tests later. [1] https://www.seleniumhq.org/ [2] https://www.cypress.io/ Change-Id: I3f55103f6ec90256f2014da9494cf62138ba44df

Modified Files

Name
M .eslintrc +10 −1 Go to diff View file
M .gitignore +1 −0 Go to diff View file
M docker-compose-distlp-tests.yml +3 −3 Go to diff View file
A docker-compose-e2e-tests.yml +102 −0 Go to diff View file
M package-lock.json +9 −0 Go to diff View file
M package.json +1 −0 Go to diff View file
M tests/Jenkinsfile +9 −1 Go to diff View file
R tests/selenium/_fixtures/svn_project_01/data/svn.dump Go to diff View file
R tests/selenium/_fixtures/svn_project_01/project.xml Go to diff View file
R tests/selenium/_fixtures/svn_project_01/users.xml Go to diff View file
A tests/e2e/cypress.json +11 −0 Go to diff View file
A tests/e2e/cypress/integration/homepage.spec.js +26 −0 Go to diff View file
A tests/e2e/cypress/integration/svn.spec.js +37 −0 Go to diff View file
A tests/e2e/cypress/run.sh +34 −0 Go to diff View file
A tests/e2e/cypress/support/commands.js +24 −0 Go to diff View file
A tests/e2e/cypress/support/index.js +20 −0 Go to diff View file
A tests/e2e/cypress/wrap.sh +38 −0 Go to diff View file
R tests/selenium/.gitignore Go to diff View file
R tests/selenium/DockerImage/Dockerfile Go to diff View file
R tests/selenium/composer.json Go to diff View file
R tests/selenium/composer.lock Go to diff View file
R tests/selenium/run.sh Go to diff View file
R tests/selenium/tests/SVN/SVNBrowsingTest.php Go to diff View file
R tests/selenium/tests/SVN/SVNCLITest.php Go to diff View file
R tests/selenium/tests/SeedCookiesTest.php Go to diff View file
R tests/selenium/wrap.sh Go to diff View file
M tools/distlp/backend-web/run.php +1 −1 Go to diff View file