cy.session does not restore chat session since upgrades from Cypress v10.10
jeanabanto opened this issue · comments
Current behavior
Up until Cypress v10.10, chat sessions are restored successfully with cy.session.
cy.session_v10.10.0_1.mov
Since Cypress 11, and the current v12, chat sessions are not restored successfully, and in effect starts a new chat session.
cy.session_v10.11.0_1.mov
Desired behavior
Chat session should be restored successfully, i.e., chat history should not be deleted so that the app does not create a new session that in effect generates a new Zendesk ticket.
Test code to reproduce
This repo currently has Cypress v10.10 installed, thus is expected to pass the test.
Upgrading Cypress to 11 or the latest release will fail the same test.
https://github.com/jeanabanto/cypress-zendesk-chat/blob/main/cypress/tests/chat.spec.ts
Note: If trial period in Zendesk expires and the account used in this repo stops working, you can easily create your own trial account in Zendesk with chat and replace the relevant environment variables.
Cypress Version
12.3.0
Node version
16.15.0
Operating System
macOS 13.1 (22C65)
Debug Logs
No response
Other
No response