question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recognizing data tags

See original GitHub issue

hello

Not entirely sure where to post this, but I’m running into an issue where I can’t seem to use this in my project, as the navigation’s classes are mostly generic.

I’ve added a few data tags to be able to test this manually however it’d be pretty cool if there was a way for the extension to recognize this.

Example html:

<div class="menu-login" data-cy="my-button">
<dev-extreme-wrapper>
<dev-extreme-button class="some-generic-class"></dev-extreme-button>
</dev-extreme-wrapper>
</div>

the test recorder is trying to do:

cy.get(‘.some-generic-class’).click();

whereas I’d expect:

cy.get(‘[data-cy=my-button]’)

I could change this manually of course, but I’m wondering whether it’s possible to include the option for the extension to recognize any data-x tag when it is recording.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
aviyadevelopercommented, May 27, 2020

Just adding some support to this. A setting that allows to give some priority to specific data tags would be great!

4reactions
adam-stovercommented, Sep 21, 2020

PR From @estruyf has added support for data-cy, data-test, and data-testid attributes. Will work on ability to customize!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices for Data Tagging, Data Classification & Data ...
Data classification can be broadly defined as the process of organizing and tagging data by categories so that collected data may be used ......
Read more >
4 data tagging best practices - SAS Blogs
4 data tagging best practices · Standardize the tags · Use all applicable tags · Don't over-tag · Re-evaluate tags over time ·...
Read more >
Data tracing vs. data tagging - Cyberhaven
Today's data tagging is opaque. It usually starts with a discovery phase where a tool will crawl throughout various data repositories deemed to ......
Read more >
Meta Tags and Attributes that Google Supports | Documentation
Google supports both page-level meta tags and tag attributes. Explore a list of the special tags that Google Search can support.
Read more >
Description of the Smart Tags in Word - Microsoft Support
When Word recognizes types of data, the data is marked with a Smart Tag indicator, or purple dotted underline. To find out what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found