Skip to content

Commit

Permalink
chore: fix test detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Nov 23, 2023
1 parent 2f94e33 commit 57e3321
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const PayForURL = async (url: string): Promise<string> => {
});

logger.info('Waiting for Reviewing Payment');
const reviewButton = await page.waitForSelector('button#payment-submit-btn', {
let reviewButton = await page.waitForSelector('button#payment-submit-btn', {
timeout: 300000
});
logger.info('Reviewing Payment');
Expand All @@ -165,11 +165,16 @@ const PayForURL = async (url: string): Promise<string> => {

await page.waitForTimeout(10000);

reviewButton = await page.waitForSelector('button#payment-submit-btn', {
timeout: 300000
});
await reviewButton.click();

logger.info('Waiting for redirect');

await page.waitForNavigation();
await page.waitForNavigation({
timeout: 300000
});

logger.info('Transaction complete');

Expand Down

0 comments on commit 57e3321

Please sign in to comment.