Created
February 25, 2022 04:17
-
-
Save scolton99/b30a38768efb3cfe754d58a48d8b3821 to your computer and use it in GitHub Desktop.
Passing test for Cypress test project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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