diff --git a/packages/driver/src/cy/commands/querying.js b/packages/driver/src/cy/commands/querying.js index f01caa92bc6c..0a64f1d79d75 100644 --- a/packages/driver/src/cy/commands/querying.js +++ b/packages/driver/src/cy/commands/querying.js @@ -15,7 +15,7 @@ const restoreContains = () => { const whitespaces = /\s+/g -module.exports = function (Commands, Cypress, cy, state, config) { +module.exports = (Commands, Cypress, cy) => { // restore initially when a run starts restoreContains() diff --git a/packages/driver/test/cypress/integration/commands/querying_spec.js b/packages/driver/test/cypress/integration/commands/querying_spec.js index ea2c4e41d1b7..5d65816f7b06 100644 --- a/packages/driver/test/cypress/integration/commands/querying_spec.js +++ b/packages/driver/test/cypress/integration/commands/querying_spec.js @@ -1893,6 +1893,12 @@ space cy.get('#test-button').contains('Test') }) + it('is case sensitive when matchCase is true', () => { + cy.get('#test-button').contains('Test', { + matchCase: true, + }) + }) + it('is case insensitive when matchCase is false', () => { cy.get('#test-button').contains('test', { matchCase: false,