Any strong objections to passing back the target along with these messages?
Use case: In case there are multiple clicks in a test, having this extra information makes it easier to find out which test selector failed. This can be also applied to other helpers.
|
throw new Error(`Can not \`click\` disabled ${element}`); |
|
`Element not found when calling \`click('${target}')\`.` |
Any strong objections to passing back the
targetalong with these messages?Use case: In case there are multiple clicks in a test, having this extra information makes it easier to find out which test selector failed. This can be also applied to other helpers.
ember-test-helpers/addon-test-support/@ember/test-helpers/dom/click.ts
Line 113 in ad469d2
ember-test-helpers/addon-test-support/@ember/test-helpers/dom/click.ts
Line 108 in ad469d2