Uploaded November 2022 | Updated November 2026, 3 hours ago
When cy.session() is not working for you and you are logged out, you might be making the mistake that’s mentioned in this video.
0:00 Intro
0:27 Creating login flow
1:52 Creating a session
2:46 cy.session() not working
4:18 Fix session by adding location assertion
5:06 Checking cookies
6:20 cy.getCookie() does not retry
6:49 Solving cookie retry with cy.document()
Want to learn Cypress? Join the next workshop: filiphric.com/cypress-core-workshop
Check out the code: github.com/filiphric
Find me on LinkedIn: linkedin.com/in/filip-hric-11a5b1126
Join the community: filiphric.com/discord
Follow me on Twitter: twitter.com/filip_hric
Visit the blog: filiphric.com
When cy.session() is not working for you and you are logged out, you might be making the mistake that’s mentioned in this video.
0:00 Intro
0:27 Creating login flow
1:52 Creating a session
2:46 cy.session() not working
4:18 Fix session by adding location assertion
5:06 Checking cookies
6:20 cy.getCookie() does not retry
6:49 Solving cookie retry with cy.document()
Want to learn Cypress? Join the next workshop: filiphric.com/cypress-core-workshop
Check out the code: github.com/filiphric
Find me on LinkedIn: linkedin.com/in/filip-hric-11a5b1126
Join the community: filiphric.com/discord
Follow me on Twitter: twitter.com/filip_hric
Visit the blog: filiphric.com










