Skip to content

Commit 57e3321

Browse files
committed
chore: fix test detection
1 parent 2f94e33 commit 57e3321

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/test.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const PayForURL = async (url: string): Promise<string> => {
153153
});
154154

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

166166
await page.waitForTimeout(10000);
167167

168+
reviewButton = await page.waitForSelector('button#payment-submit-btn', {
169+
timeout: 300000
170+
});
168171
await reviewButton.click();
169172

170173
logger.info('Waiting for redirect');
171174

172-
await page.waitForNavigation();
175+
await page.waitForNavigation({
176+
timeout: 300000
177+
});
173178

174179
logger.info('Transaction complete');
175180

0 commit comments

Comments
 (0)