che-server/tests/e2e
Igor Ohrimenko 9eb535b4dd
Create tests for the vale plugin (#19261)
2021-03-11 10:05:17 +02:00
..
driver Added possibility to run the test maximized (bottom bar was only partially visible) (#18486) 2020-12-04 16:41:54 +01:00
files/happy-path Work around error highlighting and run application failures in Happy path tests (#19068) 2021-02-17 23:28:34 +02:00
pageobjects Create tests for the vale plugin (#19261) 2021-03-11 10:05:17 +02:00
tests Create tests for the vale plugin (#19261) 2021-03-11 10:05:17 +02:00
testsLibrary Fix bugs - constant and error throwing (#18894) 2021-03-10 09:29:50 +01:00
utils Create tests for the shellcheck plugin (#19205) 2021-03-04 15:32:48 +02:00
README.md Remove default timeout (#17506) 2020-09-15 14:54:48 +02:00
TestConstants.ts [Selenium] Add DevWorkspaceHappyPath e2e typescript test (#19152) 2021-02-25 18:29:01 +02:00
TimeoutConstants.ts Increase number of timeout to stabilize 'OpenshiftConnector' e2e test (#19181) 2021-03-02 13:14:51 +02:00
generateIndex.sh Make the "TimeoutConstants" constants list available to reuse (#17882) 2020-09-16 12:58:08 +03:00
index.ts Cover the "Kubernetes" plugin by the e2e test (#19139) 2021-02-24 18:29:29 +02:00
initDevfileTests.sh Cover Get Started Tab with e2e tests in dashboard-next (#18428) 2021-02-04 12:41:03 +02:00
inversify.config.ts Cover the "Kubernetes" plugin by the e2e test (#19139) 2021-02-24 18:29:29 +02:00
inversify.types.ts Cover the "Kubernetes" plugin by the e2e test (#19139) 2021-02-24 18:29:29 +02:00
mocha-all-devfiles.opts Adding test of Factory URL to devfile test suite. (#17080) 2020-06-25 10:36:52 +02:00
mocha-all-factories.opts add factories typescript selenium tests (#19005) 2021-02-16 12:27:04 +02:00
mocha-connector.opts Create e2e test for checking Openshift plugin (#16358) 2020-06-01 12:14:56 +03:00
mocha-devworkspace-happy-path.opts [Selenium] Add DevWorkspaceHappyPath e2e typescript test (#19152) 2021-02-25 18:29:01 +02:00
mocha-factory.opts Add test for testing workspace creation via factory URL. (#16999) 2020-05-27 11:15:43 +02:00
mocha-git-publish-branch.opts Create test for checking Publish branch in git extension functionality (#18624) 2020-12-17 17:21:34 +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 Add setting for debug level, add mocha-load.opts. (#15984) 2020-02-11 09:36:53 +01:00
mocha-single-devfile.opts Cover Get Started Tab with e2e tests in dashboard-next (#18428) 2021-02-04 12:41:03 +02:00
mocha-wkspc-creation-and-ls.opts
mocha.intelij.opts Create automated E2E system tests of IntelliJ IDEA as a Che editor (#18187) 2020-10-23 17:12:11 +03:00
mocha.ocp.link.opts Create issue for checking linking the "Che" user with "OCP" user (#18198) 2020-10-26 16:26:11 +02:00
mocha.opts
mocha.single.plugin.opts Cover the "Kubernetes" plugin by the e2e test (#19139) 2021-02-24 18:29:29 +02:00
package-lock.json Bump axios from 0.18.1 to 0.21.1 in /tests/e2e (#18736) 2021-01-14 08:12:47 +01:00
package.json [Selenium] Add DevWorkspaceHappyPath e2e typescript test (#19152) 2021-02-25 18:29:01 +02:00
tsconfig.json Fixed issue - I'm dumb, didn't pass the timeout variable to the wait method (#17926) 2020-09-22 13:40:13 +02:00
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: