Skip to content

Commit

Permalink
chore: update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Nov 28, 2024
1 parent 9f78d28 commit efcf4fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/app/tests/e2e/src/pages/base.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions packages/app/tests/e2e/src/steps/blockexplorer.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit efcf4fb

Please sign in to comment.