From efcf4fbc4ef7a865aa1cd6a24381242a07a22b38 Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Thu, 28 Nov 2024 06:28:00 -0600 Subject: [PATCH] chore: update e2e tests --- packages/app/tests/e2e/src/pages/base.page.ts | 4 ++++ packages/app/tests/e2e/src/steps/blockexplorer.steps.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/packages/app/tests/e2e/src/pages/base.page.ts b/packages/app/tests/e2e/src/pages/base.page.ts index d3efdf341a..4d72816682 100644 --- a/packages/app/tests/e2e/src/pages/base.page.ts +++ b/packages/app/tests/e2e/src/pages/base.page.ts @@ -20,6 +20,10 @@ export class BasePage { return "//*[@aria-label='Pagination']"; } + get pageSizeDropdown() { + return "//div[contains(@class, 'page-size-container')]"; + } + async getColumnByText(text: string) { element = `//th[text()="${text}"]`; result = await this.world.page?.locator(element).first(); diff --git a/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts b/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts index 4fdef1efc3..f36b96826a 100644 --- a/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts +++ b/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts @@ -319,6 +319,11 @@ Then("Pagination form should be visible", async function (this: ICustomWorld) { result = await this.page?.locator(element); await expect(result).toBeVisible(config.increasedTimeout); + + element = basePage.pageSizeDropdown; + result = await this.page?.locator(element); + + await expect(result).toBeVisible(config.increasedTimeout); }); Then("Column with {string} name is visible", async function (this: ICustomWorld, columnName: string) {