skip to Main Content

Javascript – Cypress – Stringing data-test id together using commands.js fails but when stringing them together not using the command works

Hope someone can make sense of this I have created commands for search on data id's Cypress.Commands.add('getByDataQAId', (selector, ...args) => { return cy.get(`[data-qa-id=${selector}]`, ...args) }) Cypress.Commands.add('findByDataQAId', (selector, ...args) => { return cy.find(`[data-qa-id=${selector}]`, ...args) }) I am now using these to…

VIEW QUESTION
Back To Top
Search