https://github.com/duncdrum/theia-cypress-e2e
https://github.com/duncdrum/theia-cypress-e2e
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/duncdrum/theia-cypress-e2e
- Owner: duncdrum
- Created: 2019-05-12T17:18:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-17T10:14:36.000Z (over 7 years ago)
- Last Synced: 2024-05-02T01:40:19.129Z (about 2 years ago)
- Language: TypeScript
- Size: 213 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### The basic e2e test project which based on Cypress and TypeScript
##### Requirements:
- Preinstalled nodejs : [more details here](https://nodejs.org/en/download/package-manager)
- Preinstalled npm : [more details here](https://www.npmjs.com/get-npm)
- Preinstalled Cypress. [More instructions for installing here:](https://docs.cypress.io/guides/getting-started/installing-cypress.html#System-requirements)
* Before launching tests - get all dependencies with: `npm install --save-dev command` prepare a workspase for Theia. Create predefined folder (for instanse /tmp/e2e)
* Set up env. variables for the test in `cypress.json file` (or use predifined settings)
##### Launching tests with Cypress IDE
* Run Theia locally on default port 3000
* Open Cypress from the current project (we can use command like: `./node_modules/.bin/cypress open` or another way more details [here:](https://docs.cypress.io/guides/getting-started/installing-cypress.html#Opening-Cypress)
click on spec.ts file. We can watch the test with Cypress runner
##### Launching tests in headless mode
* Launch command from current project like: `/node_modules/.bin/cypress run` and wait test execution. We can watch video recording of the tests here: cypress/videos/spec.ts.mp4
##### Launching tests in view mode
* Launch command from current project like: `/node_modules/.bin/cypress run --headed`
More details about run [here:](https://docs.cypress.io/guides/guides/command-line.html#cypress-run)