Open crfrolik opened 6 months ago
This is being thrown from this piece of code: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/commands/sessions/index.ts#L435
I haven't seen this error before, I bet it is a timing thing.
This may be similar to https://github.com/cypress-io/cypress/issues/25550. However, that issue was closed, and I can't tell if there were any changes made.
Experiencing the same issue:
Failure Message: cy.then() timed out after waiting 4000ms. Your callback function returned a promise that never resolved.
The callback function was: async () => {
setSessionLogStatus(utils__WEBPACK_IMPORTED_MODULE_6.statusMap.inProgress(step));
await (0,utils__WEBPACK_IMPORTED_MODULE_6.navigateAboutBlank)();
await sessions.clearCurrentSessionData();
return cy.whenStable(() => createSession(existingSession, step));
} https://on.cypress.io/then
Chrome 127, Cypress 13.7.3
Same issue here (cypress 13.15.1): Your callback function returned a promise that never resolved. The callback function was: async () => { setSessionLogStatus(utilsWEBPACK_IMPORTED_MODULE6.statusMap.inProgress(utilsWEBPACK_IMPORTED_MODULE6.SESSION_STEPS.restore)); await (0,utils__WEBPACK_IMPORTED_MODULE6.navigateAboutBlank)(); await sessions.clearCurrentSessionData(); return restoreSession(existingSession); }
Current behavior
I got this failure once. Unfortunately it did not fail the second time, so it is not easily repeatable.
As far as I can tell, the failure came from within cypress, and not from my code.
Desired behavior
No response
Test code to reproduce
Here is a snippet of my test:
Cypress Version
13.9.0
Node version
20.12.2
Operating System
Ubuntu 22.04
Debug Logs
No response
Other
No response