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