Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com> |
||
|---|---|---|
| .. | ||
| driver | ||
| pageobjects | ||
| tests | ||
| utils | ||
| README.md | ||
| TestConstants.ts | ||
| index.ts | ||
| inversify.config.ts | ||
| inversify.types.ts | ||
| mocha-happy-path.opts | ||
| mocha.opts | ||
| package-lock.json | ||
| package.json | ||
| 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
The "Happy Path" scenario launching
- Deploy Che on Kubernetes infrastructure by using 'Minikube' and 'Chectl' https://github.com/eclipse/che/blob/master/deploy/kubernetes/README.md
- Create workspace by using 'Chectl' and devfile
- link to 'Chectl' manual https://github.com/che-incubator/chectl#chectl-workspacestart
- link to devfile (
For successfull test passing, exactly provided devfile should be used) https://gist.githubusercontent.com/Ohrimenko1988/93f5426f4ebc1705c55feb8ff0396a49/raw/cbea89ad145ba33ed34a151a12c50f045f9f3b78/yaml-ls-bug.yaml
- Provide the
'TS_SELENIUM_BASE_URL'environment variable as described above - perform command
'npm run test-happy-path'