Skip to content

Commit

Permalink
test(e2e): use testid selector and fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Apr 26, 2024
1 parent 7c49c5b commit 9056400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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();
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9056400

Please sign in to comment.