che-server/cypress-tests
Oleksandr Garagatyi 35ce3544f7
Adapt UD and wsmaster to new plugin notation (#13204)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-05-02 09:50:01 +03:00
..
cypress Adapt UD and wsmaster to new plugin notation (#13204) 2019-05-02 09:50:01 +03:00
README.md [Cypress] Update the "WorkspaceCreationAndLanguageServerInitialization.spec.ts" cypress test according to the dashboard changes (#13068) 2019-04-04 12:02:42 +03:00
cypress.json [Cypress] Update "ProjectTree.waitProjectImported" method according to the "Cypress" principles (#13097) 2019-04-09 11:29:48 +03:00
package-lock.json [Cypress] Rework "cypress-tests" module with using "InversifyJS" library (#13036) 2019-04-01 17:28:07 +03:00
package.json Use an 'Electron' browser for 'headless' mode (#13039) 2019-04-02 14:14:25 +03:00
tsconfig.json [Cypress] Rework "cypress-tests" module with using "InversifyJS" library (#13036) 2019-04-01 17:28:07 +03:00
webpack.config.js Implement first E2E suite for Che 7 (#12848) 2019-03-12 09:42:41 +02:00

README.md

This module contains tests based on using "Cypress" framework.

Build project

For obtaining required dependencies open terminal, go to "cypress-tests" folder and perform "npm install" command

Prerequisites

Launching requires valid "baseUrl" which may be configured by next way:

  • by "cypress.json" - open "cypress.json" file placed in the "cypress-tests" folder, change the "baseUrl" value to the valid URL.

  • by CLI - perform "export CYPRESS_baseUrl=<your_url>" in the terminal

Launching

  • Launch testrunner with dashboard:

    • go to the "cypress-tests" folder and perform "npm run cypress:open" in the terminal
  • Launch tests by "CLI" in the hidden mode:

    • go to the "cypress-tests" folder and perform "npm run cypress:run-hidden <test-name>" (particular test) or "npm run cypress:run-hidden" (all tests) in the terminal
  • Launch tests by "CLI" in the browser mode:

    • go to the "cypress-tests" folder and perform "npm run cypress:run <test-name>" (particular test) or "npm run cypress:run" (all tests) in the terminal