-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(uncaught exception) undefined: undefined #16516
Comments
Yah, that's not a great error message to help tracking down. Could you provide the custom command code for the |
Sure: clickOnElementBySelect: (selector, valueToPick, waitForLoading = true) => {
if (waitForLoading) {
cy.get('[data-cy=type] > .ant-select-arrow > .anticon > [data-icon=loading]svg').should(
'not.be.visible'
)
}
cy.get(selector).click().type(valueToPick)
checkElementExists('.ant-select-item-option')
clickOnElement('.ant-select-item-option').first()
} checkElementExists: The last ones were little helper functions, but the result is the same by just doing |
@titivermeesch Yeah, I don't see anything in the custom commands that seems strange. Can you provide a reproducible example? A full test file that we can run and see this throwing the error? Thanks. |
I recently updated to v8.3.0 and I'm not experiencing this issue anymore. I guess it solved itself. I'll reopen this issue if I manage to recreate the issue again |
I'm facing a similar problem in my test with the last version of cypress. |
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 |
I am having similar issues in v10.4.0 This works (depricated):
This does not:
|
I am having a similar issue with version 11.0.0 |
experiencing the same with version |
isolated a potentatial root cause with reproduction in: #24915 |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Here is the test case that is failing:
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 thecy.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
Working versions
My tests seem to run fine on
6.5.0
, but not on the latest versionThe text was updated successfully, but these errors were encountered: