From 90564001e8d7dec640ecb7b4b541e63f0c93d5aa Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Fri, 26 Apr 2024 21:17:52 +0200 Subject: [PATCH] test(e2e): use testid selector and fix grammar --- .../admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts | 6 +++--- .../admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress-tests/cypress/e2e/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts b/cypress-tests/cypress/e2e/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts index ead2e937481..e46f077b8e3 100644 --- a/cypress-tests/cypress/e2e/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts +++ b/cypress-tests/cypress/e2e/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts @@ -37,7 +37,7 @@ context("Page Builder - Blocks Export/Import", () => { description: nanoid(10).toLowerCase() }; - it("Test the importation and exportation of all blocks", () => { + it("Test import and export of all blocks", () => { cy.visit("/page-builder/page-blocks"); // Exports all created data and saves the exported string value. cy.pbCreateCategoryAndBlocks({ @@ -58,7 +58,7 @@ context("Page Builder - Blocks Export/Import", () => { cy.findByText("Export all blocks").click(); cy.findByText("Your export is now ready!").should("exist"); - cy.get(".css-3xvvqn-linkWrapper .mdc-typography--body2") + cy.findByTestId("pb-blocks-export-dialog-export-url") .invoke("text") .then(text => { const url = text.trim(); @@ -90,7 +90,7 @@ context("Page Builder - Blocks Export/Import", () => { }); }); - it("Test the importation and exportation functionality of the import block button", () => { + it("Test import and export functionality of the import block button", () => { cy.visit("/page-builder/page-blocks"); cy.pbCreateCategoryAndBlocks({ blockCategory: blockCategoryData1, diff --git a/cypress-tests/cypress/integration/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts b/cypress-tests/cypress/integration/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts index cb3fed5cd1b..5d5fb53d0ce 100644 --- a/cypress-tests/cypress/integration/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts +++ b/cypress-tests/cypress/integration/admin/pageBuilder/blocks/pageBlocksExportImport.cy.ts @@ -37,7 +37,7 @@ context("Page Builder - Blocks Export/Import", () => { description: nanoid(10).toLowerCase() }; - it("Test the importation and exportation of all blocks", () => { + it("Test import and export of all blocks", () => { cy.visit("/page-builder/page-blocks"); // Exports all created data and saves the exported string value. cy.pbCreateCategoryAndBlocks({ @@ -90,7 +90,7 @@ context("Page Builder - Blocks Export/Import", () => { }); }); - it("Test the importation and exportation functionality of the import block button", () => { + it("Test import and export functionality of the import block button", () => { cy.visit("/page-builder/page-blocks"); cy.pbCreateCategoryAndBlocks({ blockCategory: blockCategoryData1,