Skip to content

Commit

Permalink
Fixing Klarna test adding timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi committed Sep 6, 2024
1 parent ad3f98a commit 0822cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/shopware/helpers/ScenarioHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export async function doPrePaymentChecks(page, acceptTerms = true) {
await paymentDetailsPage.loadAllPaymentDetails();
}

export async function verifySuccessfulPayment(page, redirect = true) {
export async function verifySuccessfulPayment(page, redirect = true, timeout) {
const successfulResultPage = new ResultPage(page);
if (redirect) {
await successfulResultPage.waitForRedirection({ timeout:15000 });
await successfulResultPage.waitForRedirection({ timeout:timeout });
}
expect(await successfulResultPage.titleText()).toContain(
"Thank you for your order with"
Expand Down

0 comments on commit 0822cc2

Please sign in to comment.