diff --git a/README.md b/README.md index 69103ecb..afaee1c5 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,9 @@ # ember-test-selectors This Ember CLI Addon __removes all HTML 5 data attributes starting with -`data-test-` in all environments other than `development` and `test`__. That -allows using data attributes as selectors for integration and acceptance tests -without polluting the generated markup of the production (or staging etc.) -application. +`data-test-` in the `production` environment__. That allows using data +attributes as selectors for integration and acceptance tests without polluting +the generated markup of the production (or staging etc.) application. ## Installation @@ -83,16 +82,15 @@ Also it allows to encode more data in the markup like e.g. the post's id: ``` -`ember-test-selectors` makes sure to remove all these `data` attributes in all -environments except `development` and `test` so that __users will have -perfectly clean HTML delivered__: +`ember-test-selectors` makes sure to remove all these `data` attributes in the +`production` environment so that __users will have perfectly clean HTML +delivered__: ```html

My great post

Bla bla…

-``` ## License diff --git a/index.js b/index.js index 03b2460d..6367ce5b 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ module.exports = { name: 'test-selectors', included: function() { - if (this.app.env !== 'development' && this.app.env !== 'test') { + if (this.app.env === 'production') { this.app.registry.add('htmlbars-ast-plugin', { name: 'strip-test-selectors', plugin: StringTestSelectorsTransform