Skip to content

Commit b035c3f

Browse files
committed
see if this fixes ci
1 parent 6781da7 commit b035c3f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cypress-tests/cypress/support/e2e.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ import "./commands";
2222

2323
Cypress.on("uncaught:exception", (err) => {
2424
// returning false here prevents Cypress from failing the test
25-
return false;
25+
if (err.message.includes("Failed to fetch dynamically imported module")) {
26+
return false;
27+
}
28+
return true;
2629
});

cypress-tests/cypress/support/redirectionHandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ function threeDsRedirection(redirection_url, expected_url, connectorId) {
317317
});
318318
} else if (connectorId === "cybersource") {
319319
cy.url({ timeout: TIMEOUT }).should("include", expected_url.origin);
320+
return; // this is mandatory, else refunds section will fail with unhanlded promise rejections even though it is handled
320321
} else if (connectorId === "checkout") {
321322
cy.get("iframe", { timeout: TIMEOUT })
322323
.its("0.contentDocument.body")

0 commit comments

Comments
 (0)