fancy-eye-69215
09/14/2022, 3:05 PMbeforeEach to preserve the particular cookies between the it blocks:
Cypress.Cookies.preserveOnce('SESSION', 'CSRF-TOKEN', 'trustToken');
2. One line did the job, these are the only cookies I need, and I don't need any other info between the test steps.
3. So, now this code is deprecated and should be replaced by cy.session
4. What is the best way to preserve the same logic with cy.session if the only thing I need is to preserve these particular cookies without visiting the pages or performing any requests?