Adding a wait for authentication in cypress tests.#

This commit is contained in:
mike12345567 2021-04-07 20:19:25 +01:00
parent e368b83e68
commit 0c974a70eb
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@
Cypress.Commands.add("createApp", name => { Cypress.Commands.add("createApp", name => {
cy.visit(`localhost:${Cypress.env("PORT")}/builder`) cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
// wait for init API calls on visit
cy.wait(100)
cy.contains("Create New Web App").click() cy.contains("Create New Web App").click()
cy.get("body") cy.get("body")
.then($body => { .then($body => {