Skip to content

Commit

Permalink
test: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Dec 7, 2023
1 parent 09cc950 commit c2bacdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/app/tests/e2e/src/pages/base.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class BasePage {
}

async getElementByClassAndText(className: string, text: string) {
await this.world.page?.waitForTimeout(config.defaultTimeout.timeout);
element = await this.world.page?.locator(`//*[@class='${className}' and contains(text(), '${text}')]`);
return await element;
}
Expand Down

0 comments on commit c2bacdf

Please sign in to comment.