Skip to content

Instantly share code, notes, and snippets.

@jhaynie
jhaynie / example.spec.js
Last active September 4, 2023 14:35
Cypress.io login to github with node app using passport
import url from 'url';
describe('Login', function() {
it('cy.should - assert that <title> is correct', function() {
cy.visit('http://localhost:5001');
cy.get('#login').should('contain', 'Login with Github');
cy.request({
url: '/login',
followRedirect: false
})