https://github.com/gitpod-samples/cypress-sample
https://github.com/gitpod-samples/cypress-sample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gitpod-samples/cypress-sample
- Owner: gitpod-samples
- License: mit
- Created: 2024-01-11T15:32:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-12T12:57:48.000Z (over 1 year ago)
- Last Synced: 2025-04-30T17:08:29.614Z (about 2 months ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitpod-cypress
This repo demonstrates how to use Cypress with Gitpod.
## Setup
1. [This](https://github.com/kylos101/gitpod-cypress/blob/f6206606472e2b1cdf075509403dd6adc53b9ff8/.gitpod.Dockerfile#L1) base image is needed, because it included VNC and other supporting software.
2. [These](https://github.com/kylos101/gitpod-cypress/blob/f6206606472e2b1cdf075509403dd6adc53b9ff8/.gitpod.Dockerfile#L6-L17) dependencies must be installed for Cypress to work.
3. [These](https://github.com/kylos101/gitpod-cypress/blob/f6206606472e2b1cdf075509403dd6adc53b9ff8/.gitpod.yml#L11-L12) tasks initialize the workspace, to install npm packages and setup cypress in `/workspace`.
4. [These](https://github.com/kylos101/gitpod-cypress/blob/f6206606472e2b1cdf075509403dd6adc53b9ff8/.gitpod.yml#L15-L16) tasks run headless chrome tests, and open the Cypress suite, which is accessible on port 6080 via the VNC web browser.## Tips
On workspace start, a preview will be opened in the IDE for the VNC web viewer.