fix cypress createApp command
This commit is contained in:
parent
09611d3aad
commit
bc521af082
|
@ -35,7 +35,7 @@ Cypress.Commands.add("login", () => {
|
||||||
Cypress.Commands.add("createApp", name => {
|
Cypress.Commands.add("createApp", name => {
|
||||||
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
|
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
|
||||||
cy.wait(500)
|
cy.wait(500)
|
||||||
cy.request(`${Cypress.config().baseUrl}/api/applications?status=all`)
|
cy.request(`${Cypress.config().baseUrl}api/applications?status=all`)
|
||||||
.its("body")
|
.its("body")
|
||||||
.then(body => {
|
.then(body => {
|
||||||
if (body.length > 0) {
|
if (body.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue