Mistake #1 when using cy.session() (and how to solve it) @filip_hric
Mistake #1 when using cy.session() (and how to solve it)  @filip_hric
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
Mistake #1 when using cy.session() (and how to solve it)Testing as an entry gate to the world of IT...Learning about cool new toolsAPI Testing with TypeScript: Interface Magic for Response BodiesCypress: Enhance Get By Value Command with Custom Logging #shortsThree things Gleb loves (Cucumber is one of them)Code review podcast #3Cursor editor figured it all outHow to avoid waiting in CypressWhich are the tests that you should write first?Simplify API Testing with Wait ArraysDebugging a race condition
Testing tips by Filip Hric |

Mistake #1 when using cy.session() (and how to solve it)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER