cypress click button with text code example
Example: cypress click
cy.get('.btn').click() // Click on button
cy.focused().click() // Click on el with focus
cy.contains('Welcome').click() // Click on first el containing 'Welcome'
//https://docs.cypress.io/api/commands/click.html