Passing VARIABLE VALUES between tests in Cypress

S Chathuranga Jayasinghe
3 min readOct 14, 2021

Usage of cy.task() to pass variable values between Cypress tests..

Have you ever come across a situation where you need to pass a variable value across your Cypress tests? Still wonder how to do it properly?

You are lucky, I’m here to HELP :)

What I faced..

--

--