Skip to content

Commit

Permalink
Change were the waitForTimeout is initiated
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrk39 committed Jan 24, 2025
1 parent 32ec626 commit aa46a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/portalicious/pages/PaymentsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class PaymentsPage extends BasePage {
successful: number;
failed: number;
}) {
await this.page.waitForTimeout(1000); // Wait for the graph to be updated after the loader is hidden
const graph = await this.page.locator('canvas').getAttribute('aria-label');

if (graph) {
Expand All @@ -200,7 +201,6 @@ class PaymentsPage extends BasePage {
.replace(/\s+/g, ' ')
.trim();

await this.page.waitForTimeout(1000); // Wait for the graph to be updated after the loader is hidden
expect(graphText).toContain(
`Pending: ${pending}, Successful: ${successful}, Failed: ${failed}`,
);
Expand Down

0 comments on commit aa46a40

Please sign in to comment.