TypeError: Cannot read properties of undefined (reading 'split') #18557
Labels
pkg/server
This is due to an issue in the packages/server directory
stale
no activity on this issue for a long period
type: bug
Current behavior
when utilizing
cypress-wait-until
and returning false via Promise rejection, the error message is not displayed as expected:see https://github.com/NoriSte/cypress-wait-until/blob/master/src/index.js#L62
and https://github.com/cypress-io/cypress/search?q=splitStack (specifically
cypress/packages/server/lib/util/stack_utils.ts
Line 7 in 56234e5
Desired behavior
Cypress should display the error message regardless of whether a stack trace is available
Test code to reproduce
cypress/support/commands/ts
cypress/integration/my.spec.ts
Cypress Version
7.6.0
Other
seems to be an issue with promises, as
cy.waitUntil(() => false);
returns a usable Error Message:The text was updated successfully, but these errors were encountered: