(uncaught exception) undefined: undefined
See original GitHub issueCurrent behavior
Here is the test case that is failing:
it('can create a new equipment model', () => {
cy.clickOnElementByText('Equipment Models')
cy.clickOnElementByText('Add model')
cy.pickElementFromSelect('cy|type', equipmentType, '.ant-select-item')
cy.get('cy|brand').type(modelBrand)
cy.get('cy|name').type(modelName)
cy.get('cy|description').type('description')
cy.get('cy|cost').type(300)
cy.contains('OK').click()
// cy.searchTable(modelName)
// cy.checkElementContainsValue('.ant-table-tbody', modelName)
})
My test was not like this originally but I’ve tried to narrow it down as much as possible (by using normal cypress commands instead of custom ones for example).
I keep getting this error:
Right now it’s on the command pickElementFromSelect
but it also happens on the cy.get
ones, it seems like a very random behavior.
I’m not sure where it comes from. There are no other errors in the console during execution and the app just workes fine when I test it manually.
Is there a way to know where this comes from?
Desired behavior
The commands should just be executed.
Versions
- Using Chrome 90, but also saw this with Edge 90
- Cypress 7.3.0 (also had it on 7.2.0)
- MacOS 11.2.3 (It also happens in CI on Ubuntu 18.04.5)
Working versions
My tests seem to run fine on 6.5.0
, but not on the latest version
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to debug "uncaught exception: undefined (unknown)" in ...
Line 1 Line 2 Uncaught exception: undefined. then you know that baz() was causing the error. Another way is to use the debugger,...
Read more >Uncaught exception error : undefined - BMC Communities
Uncaught exception error : undefined. Hi all,. We are running on ITSM 7.6.04 SP3 on linux platform. we are suffering of some problems...
Read more >1293546 - many "JavaScript error: , line 0: uncaught exception
many "JavaScript error: , line 0: uncaught exception: undefined" in desktop-test-linux64/debug-mochitest-media log. Summary: many "JavaScript error: , line ...
Read more >Uncaught Error: Call to undefined method Exception
Uncaught Error: Call to undefined method Exception::get_pinterest_code(). Resolved Raquel. (@keuls). 8 months ago. Hi,. I got a heads-up from WordPress ...
Read more >Handle Service Unavailable and Uncaught Exception in ...
In this video, I have explained how to solve handle service unavailable error and Uncaught Exception in Cypress.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am having a similar issue with version 11.0.0
Having this as well with the latest version, had it as well with v8.3.0. I’m currently stuck at 6.5 because everything else seems to fail the tests instantly