Skip to content

Instantly share code, notes, and snippets.

@scolton99
Created February 25, 2022 04:17
Show Gist options
  • Save scolton99/b30a38768efb3cfe754d58a48d8b3821 to your computer and use it in GitHub Desktop.
Save scolton99/b30a38768efb3cfe754d58a48d8b3821 to your computer and use it in GitHub Desktop.
Passing test for Cypress test project.
it('this one succeeds', () => {
cy.visit('https://sso.local.domain:8443/');
cy.intercept({
method: 'POST',
url: 'https://sso.local.domain:8443/'
}, cookieFixer);
cy.get('#username').type('username');
cy.get('#password').type('password');
cy.get('#submit').click();
cy.location('pathname').should('include', 'callback');
cy.get('body').should('contain.text', 'Welcome back!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment