mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
732cbf0c26
[server-ce] Add e2e test for CE GitOrigin-RevId: f76ee4d19680c57a3a0854bc89175b3fb352ca41
9 lines
350 B
TypeScript
9 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')
|
|
})
|
|
}
|