Strip test selectors defined in component javascript
See original GitHub issueThis 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:
- Created 8 years ago
- Reactions:10
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marcoow any update on this?
This has been fixed via #45