Update command file
Including a wait which seems necessary when logging in for the first time
This commit is contained in:
parent
9fdcecf8da
commit
9eceb2b9b0
|
@ -5,6 +5,7 @@ Cypress.on("uncaught:exception", () => {
|
|||
// ACCOUNTS & USERS
|
||||
Cypress.Commands.add("login", (email, password) => {
|
||||
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 10000 })
|
||||
cy.wait(2000)
|
||||
cy.url().then(url => {
|
||||
if (url.includes("builder/admin")) {
|
||||
// create admin user
|
||||
|
|
Loading…
Reference in New Issue