Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-che/che-e2e

Package Overview
Dependencies
Maintainers
5
Versions
361
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-che/che-e2e

## Requirements

  • 7.40.1-dev-7e70384
  • npm
  • Socket score

Version published
Weekly downloads
246
increased by33.7%
Maintainers
5
Weekly downloads
 
Created
Source

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 ci

Note: If there is any modifications in package.json, manually execute the npm install to update the package-lock.json. So that errors can be avoided while executing npm ci

Default launch

  • Provide connection credentials to Che:
    • export TS_SELENIUM_USERNAME=<username>
    • export TS_SELENIUM_PASSWORD=<password>
  • 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'
  • Check for available scripts in package.json which are prefixed by test-. Then, perform command npm run test-<suffixNameOfScript>

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 installed inside. For connecting use '0.0.0.0:5920' address.

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:

Plugins tests launching for the Che without oauth authentication

Setup next environment variables:

  • export TS_SELENIUM_BASE_URL=<Che-URL>
  • export USERSTORY=<Test you want to run >
  • (skip if login is "admin") export TS_SELENIUM_USERNAME=<Login>
  • (skip if password is "admin") export TS_SELENIUM_PASSWORD=<Password>

Run command:

  • npm run test-plugin

Plugins tests launching for the Che wit oauth authentication

Setup next environment variables:

  • export TS_SELENIUM_BASE_URL=<Che-URL>
  • export USERSTORY=<test-you-want-to-run>
  • export TS_SELENIUM_VALUE_OPENSHIFT_OAUTH="true"
  • export TS_SELENIUM_OCP_USERNAME=<cluster-username>
  • export TS_SELENIUM_OCP_PASSWORD=<cluster-password>

Run command:

  • npm run test-plugin

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc