1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00

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()
})
}
})
})