This code will yield the DOM element with YOUR_BUTTON_CLASS which contains text ‘Customer’. Is that what you’re looking for?
cy.get('.YOUR_BUTTON_CLASS').contains('Customer');
Here the documentation for .contains cypress command.
This code will yield the DOM element with YOUR_BUTTON_CLASS which contains text ‘Customer’. Is that what you’re looking for?
cy.get('.YOUR_BUTTON_CLASS').contains('Customer');
Here the documentation for .contains cypress command.