此错误源于我的应用程序
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'links')
但在我的支持/索引中。我写的js文章源自玩技e族-https://www.playezu.com/182828.html
// Import commands.js using ES2015 syntax:
import './commands'
Cypress.on('uncaught:exception', (err, runnable, promise) => {
// when the exception originated from an unhandled promise
// rejection, the promise is provided as a third argument
// you can turn off failing the test in this case
if (err.message.includes("Unexpected token ':'")) {
return false
}
if (err.message.includes("TypeError")) {
return false
}
if (err.message.includes("Uncaught")) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})
为什么我不能用 如果出错。消息包括(“TypeError”)
文章源自玩技e族-https://www.playezu.com/182828.html
Cypress 9.1版文章源自玩技e族-https://www.playezu.com/182828.html
软件测试功能测试项目经历文章源自玩技e族-https://www.playezu.com/182828.html 文章源自玩技e族-https://www.playezu.com/182828.html
评论