Ember Test Selectors enables better element selectors in Ember.js tests.


What does it do?

  • it removes attributes starting with data-test- from HTML tags and component/helper invocations in your templates for production builds
  • it removes properties starting with data-test- from your JS objects like component classes for production builds
  • it automatically binds properties starting with data-test- on all components for development/testing builds

Installation

Install Ember Test Selectors as an Ember CLI Addon:

ember install ember-test-selectors

How to use it

More information

This is only a very brief overview of Ember Test Selectors's features. More detailed docs can be found in the README.