Skip to content

cy.dataCy not inserting double quotes around selector #399

@lupodellasleppa

Description

@lupodellasleppa

Hi all,

when using the very useful cy.dataCy selector, it doesn't automatically add double quotes surrounding the data-cy selector, as it is instead clearly stated in the documentation.
This leads to issues when using special characters in the data-cy names, as per my use case when using dots to name different sections of a component.

At the moment I'm working it around by adding the double quotes myself (cy.dataCy('"<selector>"')) but it's kinda annoying to do and ugly to look at.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions