che-server/tests/e2e
Katerina Foniok 46db144260
Remove default timeout (#17506)
* Removing default timeouts

* Stabilising suggestion invoking test

* Change reporter printing info, lint

* Unify the way of waiting for the workspace to be ready

* Add TimeoutConstants.ts to Readme.md

* Applying some refactoring changes gotten in review.

* Removing reundant timeouts set when calling methods

* Reverting of removal 'waitTab' method from Terminal class
2020-09-15 14:54:48 +02:00
..
driver Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
files/happy-path Use spring-petclinic-2.3.0 in E2E Happy path tests (#17746) 2020-08-28 17:32:40 +03:00
pageobjects Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
tests Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
testsLibrary Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
utils Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
README.md Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
TestConstants.ts Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
TimeoutConstants.ts Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
generateIndex.sh
index.ts Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
inversify.config.ts Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
inversify.types.ts Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
mocha-all-devfiles.opts Adding test of Factory URL to devfile test suite. (#17080) 2020-06-25 10:36:52 +02:00
mocha-che-operatorhub.opts
mocha-che-subscribe-operator.opts
mocha-connector.opts Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
mocha-factory.opts Add test for testing workspace creation via factory URL. (#16999) 2020-05-27 11:15:43 +02:00
mocha-git-ssh.opts Add new test for checking git plus ssh workflow (#15561) 2020-02-25 19:16:53 +02:00
mocha-happy-path.opts
mocha-java-vertx.opts Fix devfile tests - use Get Started page (#16922) 2020-05-14 16:26:40 +02:00
mocha-load.opts
mocha-wkspc-creation-and-ls.opts
mocha.opts
package-lock.json Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
package.json Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
tsconfig.json
tslint.json

README.md

Module for launch E2E tests related to Che 7

Requirements

  • node 8.x
  • "Chrome" browser 69.x or later
  • deployed Che 7 with accessible URL

Before launch

Perform commands:

  • export TS_SELENIUM_BASE_URL=<Che7 URL>
  • npm install

Default launch

  • npm test

Custom launch

  • Use environment variables which described in the 'TestConstants.ts' file
  • Use environment variables for setting timeouts if needed. You can see the list in 'TimeoutConstants.ts'. You can see the list of those variables and their value if you set the 'TS_SELENIUM_PRINT_TIMEOUT_VARIABLES = true'

Docker launch

  • open terminal and go to the "e2e" directory
  • export the "TS_SELENIUM_BASE_URL" variable with "Che" url
  • run command "npm run test-docker"

Docker launch with changed tests

For launching tests with local changes perform next steps:

  • open terminal and go to the "e2e" directory
  • export the "TS_SELENIUM_BASE_URL" variable with "Che" url
  • run command "npm run test-docker-mount-e2e"

Debug docker launch

The 'eclipse/che-e2e' docker image has VNC server instaled inside. For connecting use '0.0.0.0:5920' adress.

The "Happy Path" scenario launching

The easiest way to do that is to perform steps which are described in the "Docker launch" paragraph. For running tests without docker, please perform next steps: