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.

Strip test selectors defined in component javascript

See original GitHub issue

This is a great idea! However, many times I find myself doing something like this:

export default Ember.Component.extend({
  attributeBindings: ['data-test-id'],
  'data-test-id': Ember.computed('model.id', function() {
     return `model-name-${id}-component`;
  }),
});

Just browsing the code, it looks like this wouldn’t be stripped (since it’s using a handlebars AST parser).

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:10
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bcardarellacommented, Oct 26, 2016

@marcoow any update on this?

0reactions
marcoowcommented, Jan 11, 2017

This has been fixed via #45

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 8. Testing JavaScript components - liveBook · Manning
This chapter covers. Applying unit testing fundamentals to JavaScript components; Writing unit tests in Tape; Mocking, spying, and proxying; Testing browsers ...
Read more >
How to test a Component's CSS styles with React ... - Ilya Zykin
How to test a Component's CSS styles with React-Testing-Library (RTL) and Styled Components. If you check RTL documentation and examples you see very...
Read more >
Element Selectors | TestCafe Studio
Selectors filter the DOM and return page elements that match user-defined criteria. They are similar to CSS Selectors in both purpose and ...
Read more >
Testing Components – Testing Angular
Introduction to testing Angular Components with Angular's TestBed.
Read more >
Element.querySelector() - Web APIs | MDN
The querySelector() method of the Element interface returns the first element that is a descendant of the element on which it is invoked ......
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