1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

fix cypress createApp command

This commit is contained in:
Peter Clement 2022-01-20 11:51:41 +00:00
parent 220adba4c1
commit c5ea321f25

View file

@ -35,7 +35,7 @@ Cypress.Commands.add("login", () => {
Cypress.Commands.add("createApp", name => {
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.wait(500)
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
cy.request(`${Cypress.config().baseUrl}api/applications?status=all`)
.its("body")
.then(body => {
if (body.length > 0) {