From a521f696d3a0da457e560511eb7251bcb6b2e0c2 Mon Sep 17 00:00:00 2001 From: Lorcan Coyle Date: Wed, 30 Aug 2017 08:05:33 +0100 Subject: [PATCH] Added a link to the deprecations warning to point to a codemod to help address it (#140) The codemod is here: https://github.com/lorcan/test-selectors-codemod --- README.md | 6 ++++++ addon/index.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 61efb7e1..7f7ee68a 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,12 @@ was triggered by `ember test`. That means that if you use `ember test --environment=production` the test selectors will still work, but for `ember build -prod` they will be stripped out. +Deprecations +------------------------------------------------------------------------------ + +The `testSelector` helper was deprecated in [v0.3.7](https://github.com/simplabs/ember-test-selectors/releases/tag/v0.3.7). +There's a codemod available at https://github.com/lorcan/test-selectors-codemod +that can help make the necessary transformations to address the deprecation. License ------------------------------------------------------------------------------ diff --git a/addon/index.js b/addon/index.js index 8fa50a57..71538099 100644 --- a/addon/index.js +++ b/addon/index.js @@ -9,7 +9,7 @@ export default function testSelector(key, value) { deprecate(message, false, { id: 'ember-test-selectors.test-selector-helper', until: '0.4.0', - url: 'https://github.com/simplabs/ember-test-selectors#usage', + url: 'https://github.com/simplabs/ember-test-selectors#deprecations', }); return isNone(value) ? `[data-test-${key}]` : `[data-test-${key}="${value}"]`;