https://cypress.io logo
Hello beautiful people! I wonder how am I able to...
# help
g
Hello beautiful people! I wonder how am I able to reuse the same cookies, cache and everything else when using two cy.visit e.g.
Copy code
ts
Suite('Cypress support, I need help', () => {
  before(() => {
    prepare();
    cy.visit('https://helloworld.com');
  });

  Scenario('Test', () => {
    When('we are testing get', () => {
      cy.get('.test')
    });
    Then('we are testing cy.visit', () => {
      cy.visit('https://helloworld.com/Barrythrill')
    });
Basically whats happening is the cookies from prepare() goes to the first cy.visit but in the second cy.visit, it is all restored. how can I re-use all the needs?