From 7ec75361bec4bf43cd30dc7d7572cb18e9a5ade8 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 9 May 2022 18:00:04 +0100 Subject: [PATCH] Cypress test fixes --- .../cypress/integration/appPublishWorkflow.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/builder/cypress/integration/appPublishWorkflow.spec.js b/packages/builder/cypress/integration/appPublishWorkflow.spec.js index d18233e0e7..71afd5accf 100644 --- a/packages/builder/cypress/integration/appPublishWorkflow.spec.js +++ b/packages/builder/cypress/integration/appPublishWorkflow.spec.js @@ -19,7 +19,7 @@ filterTests(['all'], () => { cy.get(".appTable .app-row-actions").eq(0) .within(() => { - cy.get(".spectrum-Button").contains("Preview") + cy.get(".spectrum-Button").contains("View") cy.get(".spectrum-Button").contains("Edit").click({ force: true }) }) @@ -57,7 +57,7 @@ filterTests(['all'], () => { cy.get(".appTable .app-row-actions").eq(0) .within(() => { - cy.get(".spectrum-Button").contains("View app") + cy.get(".spectrum-Button").contains("View") 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") .within(() => { 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") }) }) @@ -84,7 +84,7 @@ filterTests(['all'], () => { cy.get(".appTable .app-row-actions").eq(0) .within(() => { - cy.get(".spectrum-Button").contains("View app") + cy.get(".spectrum-Button").contains("View") cy.get(".spectrum-Button").contains("Edit").click({ force: true }) })