Can you share some example code of what you're try...
# help
a
Can you share some example code of what you're trying to do?
c
Using your example, you should be able to do something like:
Copy code
it('button click navigates to domain2', () => {
  // domain 1
  cy.findByRole('button', { name: 'example' }).click();

  cy.origin('https://domain2.com', () => {
    cy.get('#example').should('be.visible')
  })
})
s
Yea I tried with this one first and it didn't work, then I came here for help. It fails right after clicking.