-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selector playground omits quotes for preferred data- attribute selectors #1884
Comments
I believe there is a check that tests whether or not the quotes are necessary - and only conditionally adds them. Can you provide an example / code / screenshot / whatever to show the behavior you're describing? |
Looks like this is only an issue in electron. Chrome has no problem with |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
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
The text was updated successfully, but these errors were encountered: