Cypress test fixes

This commit is contained in:
Dean 2022-05-09 18:00:04 +01:00
parent 97210280d5
commit 7ec75361be
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ filterTests(['all'], () => {
cy.get(".appTable .app-row-actions").eq(0) cy.get(".appTable .app-row-actions").eq(0)
.within(() => { .within(() => {
cy.get(".spectrum-Button").contains("Preview") cy.get(".spectrum-Button").contains("View")
cy.get(".spectrum-Button").contains("Edit").click({ force: true }) cy.get(".spectrum-Button").contains("Edit").click({ force: true })
}) })
@ -57,7 +57,7 @@ filterTests(['all'], () => {
cy.get(".appTable .app-row-actions").eq(0) cy.get(".appTable .app-row-actions").eq(0)
.within(() => { .within(() => {
cy.get(".spectrum-Button").contains("View app") cy.get(".spectrum-Button").contains("View")
cy.get(".spectrum-Button").contains("Edit").click({ force: true }) cy.get(".spectrum-Button").contains("Edit").click({ force: true })
}) })
@ -66,7 +66,7 @@ filterTests(['all'], () => {
cy.get("[data-cy='publish-popover-menu']").should("be.visible") cy.get("[data-cy='publish-popover-menu']").should("be.visible")
.within(() => { .within(() => {
cy.get("[data-cy='publish-popover-action']").should("exist") cy.get("[data-cy='publish-popover-action']").should("exist")
cy.get("button").contains("View app").should("exist") cy.get("button").contains("View").should("exist")
cy.get(".publish-popover-message").should("have.text", "Last published a few seconds ago") cy.get(".publish-popover-message").should("have.text", "Last published a few seconds ago")
}) })
}) })
@ -84,7 +84,7 @@ filterTests(['all'], () => {
cy.get(".appTable .app-row-actions").eq(0) cy.get(".appTable .app-row-actions").eq(0)
.within(() => { .within(() => {
cy.get(".spectrum-Button").contains("View app") cy.get(".spectrum-Button").contains("View")
cy.get(".spectrum-Button").contains("Edit").click({ force: true }) cy.get(".spectrum-Button").contains("Edit").click({ force: true })
}) })