79453335

Date: 2025-02-20 04:32:26
Score: 1
Natty:
Report link

You need to change the character on commands.ts file from ' to `

So, the code would be like this:

Cypress.Commands.add("getByData", (selector) => { return cy.get([data-test=${selector}]) })

save and it should work

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: marrapedro