cypress-io / cypress-ssl-repro

πŸ”’ Repro for a Cypress.io ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress.io SSL Repro

πŸ”’ Repro for a Cypress.io ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue

:(

Running

Simply run docker-compose up in the root of this repository. An Nginx server will be launched at localhost:8443.

Testing

Passing Tests

The following Cypress test should pass when run. (As in not cause Cypress to display the ERR_SSL_VERSION_OR_CIPHER_MISMATCH error)

describe('Passing Tests', function(){
    it('Browse to "localhost" with visit()', function() {
	cy.visit('https://localhost:8443')
    })

    it('Browse to "localhost" with request()', function() {
	cy.request('https://localhost:8443')
    })

    it('Browse to "127.0.0.1" with visit()', function() {
	cy.request('https://127.0.0.1:8443')
    })

    it('Browse to "127.0.0.1" with visit() and get a 403', function() {
	cy.visit('https://127.0.0.1:8443/403')
    })
})

Failing Tests

The following Cypress test should (currently) fail, and cause Cypress to display the ERR_SSL_VERSION_OR_CIPHER_MISMATCH error.

describe('Failing Tests', function(){
    it('Browse to "127.0.0.1" with visit()', function() {
	cy.visit('https://127.0.0.1:8443')
    })

    it('Browse to "127.0.0.1" with visit() and get a 200', function() {
	cy.visit('https://127.0.0.1:8443/200')
    })

    it('Browse to "127.0.0.1" with visit() and get a 307', function() {
	cy.visit('https://127.0.0.1:8443/307')
    })
})

Regenerating SSL Certificate

I've committed them for convenience, but if you want to regenerate the SSL certificate, simply run ./make-cert.sh in the root of this repository.

About

πŸ”’ Repro for a Cypress.io ERR_SSL_VERSION_OR_CIPHER_MISMATCH issue


Languages

Language:JavaScript 88.8%Language:Shell 11.2%