diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 57afeacbbf..cac72a7196 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -64,7 +64,7 @@ declare global { } Cypress.Commands.add('getByTestID', (selector, ...args) => { - return cy.get(`[data-testid=${selector}]`, ...args) + return cy.get(`[data-testid=${Cypress.$.escapeSelector(selector)}]`, ...args) }) Cypress.Commands.add('createEmptyWallet', (isRandom: boolean = false) => {