fix renaming an app

This commit is contained in:
Martin McKeaveney 2021-11-10 14:57:46 +01:00
parent 88c1b16ec2
commit 0a0a338b83
2 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,8 @@ it("should rename an unpublished application", () => {
renameApp(appRename)
cy.searchForApplication(appRename)
cy.get(".appGrid").find(".wrapper").should("have.length", 1)
})
cy.deleteApp(appRename)
})
xit("Should rename a published application", () => {
// It is not possible to rename a published application

View File

@ -51,8 +51,11 @@ Cypress.Commands.add("deleteApp", appName => {
.then(val => {
if (val.length > 0) {
cy.get(".title > :nth-child(3) > .spectrum-Icon").click()
cy.get(`[data-cy="delete-app-confirmation"]`).type(appName)
cy.get(".spectrum-Button--warning").click()
cy.contains("Delete").click()
cy.get(".spectrum-Modal").within(() => {
cy.get("input").type(appName)
cy.get(".spectrum-Button--warning").click()
})
}
})
})