Skip to content

Commit

Permalink
Add default timeout for verifySuccessfulPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkiravul committed Mar 4, 2024
1 parent 4eca33b commit f9bb99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/magento/helpers/ScenarioHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function fillBillingAddress(page, user){
await new AnimationHelper(page).waitForAnimation();
}

export async function verifySuccessfulPayment(page, redirect = true, timeout) {
export async function verifySuccessfulPayment(page, redirect = true, timeout=15000) {
const successfulCheckoutPage = new SuccessfulCheckoutPage(page);
if (redirect !== false) {
await successfulCheckoutPage.waitForRedirection(timeout);
Expand Down Expand Up @@ -96,7 +96,7 @@ export async function makeIDealPayment(page, issuerName) {
await idealPaymentSection.selectIdealIssuer(issuerName);

await placeOrder(page);
await page.waitForNavigation();
await page.waitForURL("**/acquirersimulator/**");
await new IdealIssuerPage(page).continuePayment();
}

Expand Down

0 comments on commit f9bb99c

Please sign in to comment.