Skip to content

Selector playground omits quotes for preferred data- attribute selectors #1884

@silversteez

Description

@silversteez

Current behavior:

When using selector playground to select elements with preferred data attributes (data-cy, data-test, data-testid), the provided selector is missing quotes around the value. The selector then fails to .get() the desired element during test.

Any other data- attribute works correctly.

Desired behavior:

Preferred data- attribute selectors should have quotes around the value

Steps to reproduce:

Use selector playground to select any element with a data-test="whatever" attribute

Versions

Cypress 3.0.1, Mac Os 10.12.5, Electron 59

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions