emberjs/ember-test-helpers

[feature request] pass more information back in error scenarios

godserahul1986 opened this issue · 0 comments

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}')\`.`