mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
clean up
This commit is contained in:
parent
5ddd34a5c9
commit
e49e272f7a
1 changed files with 0 additions and 13 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue