Skip to content

Commit

Permalink
fix test-recipes script where error is throwing on www.cpyress.io (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker authored Jul 25, 2024
1 parent 0a7dda1 commit 15a7ed5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ describe('Two domains using file', () => {
Cypress.on('uncaught:exception', (err) => {
// cypress.io has a few React exceptions related to state hydration,
// but these exceptions do not impact this test
if (err.message.includes('Minified React error')) {
// This is also true with Cannot read properties of null (reading 'addEventListener') which has to due with the osano library
// that is on www.cypress.io
if (err.message.includes('Minified React error') || err.message.includes(`Cannot read properties of null (reading 'addEventListener')`)) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ describe('Two domains', () => {
Cypress.on('uncaught:exception', (err) => {
// cypress.io has a few React exceptions related to state hydration,
// but these exceptions do not impact this test
if (err.message.includes('Minified React error')) {
// This is also true with Cannot read properties of null (reading 'addEventListener') which has to due with the osano library
// that is on www.cypress.io
if (err.message.includes('Minified React error') || err.message.includes(`Cannot read properties of null (reading 'addEventListener')`)) {
return false
}

Expand Down
4 changes: 3 additions & 1 deletion examples/testing-dom__page-source/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ describe('Page source', () => {
Cypress.on('uncaught:exception', (err) => {
// cypress.io has a few React exceptions related to state hydration,
// but these exceptions do not impact this test
if (err.message.includes('Minified React error')) {
// This is also true with Cannot read properties of null (reading 'addEventListener') which has to due with the osano library
// that is on www.cypress.io
if (err.message.includes('Minified React error') || err.message.includes(`Cannot read properties of null (reading 'addEventListener')`)) {
return false
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"x2js": "3.4.1"
},
"engines": {
"node": "^18.16.0"
"node": "^18.16.0 || ^20.11.1"
},
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 15a7ed5

Please sign in to comment.