mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-17 21:05:04 -04:00
10 lines
350 B
TypeScript
10 lines
350 B
TypeScript
|
export function login(username: string, password = 'Passw0rd!') {
|
||
|
cy.session([username, password, new Date()], () => {
|
||
|
cy.visit('/login')
|
||
|
cy.get('input[name="email"]').type(username)
|
||
|
cy.get('input[name="password"]').type(password)
|
||
|
cy.findByRole('button', { name: 'Login' }).click()
|
||
|
cy.url().should('contain', '/project')
|
||
|
})
|
||
|
}
|