Adding a wait for authentication in cypress tests.#
This commit is contained in:
parent
e368b83e68
commit
0c974a70eb
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue