Skip to content

Commit ba4b2a6

Browse files
committed
fix: make cypress not fail when pages return 404
1 parent 2413770 commit ba4b2a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: cypress/support/commands.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@
2222
//
2323
//
2424
// -- This is will overwrite an existing command --
25-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
25+
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
26+
originalFn(url, { ...options, failOnStatusCode: false })
27+
})

0 commit comments

Comments
 (0)