Skip to content

Commit

Permalink
hotfix for e2e tests failing on trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmorb committed May 17, 2024
1 parent 7738731 commit d063f09
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
19 changes: 6 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@babel/preset-env": "^7.23.2",
"@wordpress/env": "^5.0.0",
"commons-api": "git+https://github.com/wielebenwir/commons-api.git",
"cypress": "^13.1.0",
"cypress": "^13.9.0",
"editorconfig": "^2.0.0",
"grunt": "^1.6.1",
"grunt-babel": "^8.0.0",
Expand Down
10 changes: 9 additions & 1 deletion tests/cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
// require('./commands')
Cypress.on('uncaught:exception', (err, runnable) => {
// WordPress is throwing this error in the latest trunk when trying to login with a changed date #61224 in Trac. This workaround is in place until the issue is resolved
if (err.message.includes('Cannot read properties of undefined (reading \'serialize\')')) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})

0 comments on commit d063f09

Please sign in to comment.