So, i have a button that opens an new tab, i know the url and i can use cy.visit().
cy.visit()
This what i have in the button :
input type="sub