Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jarretmoses/cypress-regression-3.8.x
Example with CRA / HTTPS / Cypress not working on 3.8.x
https://github.com/jarretmoses/cypress-regression-3.8.x
Last synced: 13 days ago
JSON representation
Example with CRA / HTTPS / Cypress not working on 3.8.x
- Host: GitHub
- URL: https://github.com/jarretmoses/cypress-regression-3.8.x
- Owner: jarretmoses
- Created: 2019-12-27T21:20:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:47:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T16:16:36.653Z (3 months ago)
- Language: TypeScript
- Size: 3.95 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example of my setup and cypress failing with version 3.8.1. My setup uses Create React App with local SSL running by use of `mkcert` and injecting the created cert file into webpack before starting the dev server. My local tests simply run on the url my local app runs.
## Setup Env and Run Tests
- `brew install mkcert`
- `npm install`
- npm run `create-local-cert`
- `npm start`
- `npm run cy:open`
- click `example.test.ts` and see the error occur `ERR_SSL_PROTOCOL_ERROR (-107) loading 'https://localhost:59152/__/#/tests/integration/example.test.ts'`
- Then install cypress `3.7.0` rerun tests and notice they work fineNote: with this setup your localhosts may always try and redirect to `https` even if you don't want it to which can be annoying. Follow the `The Solution` section [here](https://www.codeproject.com/Articles/1010667/SSL-Connection-Error-When-Debugging-via-Localhost) to remove that problem