diff --git a/packages/app/tests/e2e/src/pages/base.page.ts b/packages/app/tests/e2e/src/pages/base.page.ts index d3efdf341..4d7281668 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 4fdef1efc..f36b96826 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) {