Created
May 1, 2022 03:36
-
-
Save nottyo/41b2cf5de63b3aeb0858f632bbcfefba to your computer and use it in GitHub Desktop.
login with session
This file contains 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
describe('login with session', () => { | |
beforeEach(() => { | |
// login once for all test cases and preserve its login session. | |
cy.lineLoginWithSession(Cypress.env('email'), Cypress.env('password')); | |
cy.visit(Cypress.config('baseUrl')); | |
}); | |
it('render profileUrl', () => { | |
cy.get('img[alt="profileUrl"]').should('be.visible'); | |
}); | |
it('render displayName', () => { | |
cy.get('[data-testid="displayName"]').should('have.text', 'displayName: Nott'); | |
}); | |
it('render logout button', () => { | |
cy.get('[data-testid="logout"]').should('be.visible'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment