Skip to content

Commit

Permalink
'fix' e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Oct 20, 2022
1 parent bf422e7 commit 17fe505
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e-tests/mdx/cypress/integration/fs-api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Cypress.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('Minified React error #418') || err.message.includes('Minified React error #423') || ('Minified React error #425')) {
return false
}
})

describe(`creates pages using the file system routing API`, () => {
it(`index`, () => {
cy.visit("/fs-api/").waitForRouteChange()
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/mdx/cypress/integration/pages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* global cy */

Cypress.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('Minified React error #418') || err.message.includes('Minified React error #423') || ('Minified React error #425')) {
return false
}
})

describe(`Pages`, () => {
it(`can be created with MDX`, () => {
cy.visit(`/`).waitForRouteChange()
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/trailing-slash/cypress/integration/legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { assertPageVisits } from "../support/utils/trailing-slash"

Cypress.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('Minified React error #418') || err.message.includes('Minified React error #423') || ('Minified React error #425')) {
return false
}
})

describe(`legacy`, () => {
beforeEach(() => {
cy.visit(`/`).waitForRouteChange()
Expand Down

0 comments on commit 17fe505

Please sign in to comment.