As of 4.0.0, Cypress offers matchCase option with contains…
cy.get('div').contains('capital sentence', { matchCase: false })
As of 4.0.0, Cypress offers matchCase option with contains…
cy.get('div').contains('capital sentence', { matchCase: false })