1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00
This commit is contained in:
Tyler Myracle 2024-01-21 21:24:22 -06:00
parent 5ddd34a5c9
commit e49e272f7a

View file

@ -29,19 +29,6 @@ Cypress.Commands.add('apiRequest', ({ url, headers = {}, ...options }, ...rest)
) )
}) })
Cypress.Commands.add('nextApiRequest', ({ url, headers = {}, ...options }, ...rest) => {
return cy.request(
{
url: `${Cypress.env('NEXTAUTH_URL')}/${url}`,
headers: {
...headers,
},
...options,
},
...rest
)
})
Cypress.Commands.add('login', () => { Cypress.Commands.add('login', () => {
cy.visit('/login') cy.visit('/login')
cy.get('input[name="email"]').type('test@test.com') cy.get('input[name="email"]').type('test@test.com')