1
0
Fork 0
mirror of synced 2024-06-23 08:30:31 +12:00
This commit is contained in:
Mitch-Budibase 2022-04-12 17:33:17 +01:00
parent eba7df7255
commit 761ac69783

View file

@ -75,18 +75,18 @@ Cypress.Commands.add("deleteApp", name => {
}
return acc
}, "")
if (appId == "") {
return
}
const appIdParsed = appId.split("_").pop()
const actionEleId = `[data-cy=row_actions_${appIdParsed}]`
cy.get(actionEleId).within(() => {
cy.get(".spectrum-Icon").eq(0).click()
})
}
cy.get(".spectrum-Menu").then($menu => {
if ($menu.text().includes("Unpublish")) {
cy.get(".spectrum-Menu").contains("Unpublish").click()
@ -102,8 +102,7 @@ Cypress.Commands.add("deleteApp", name => {
} else {
return
}
}
else {
} else {
return
}
})