I’m just getting started with Ember testing and am not sure how to go about integration tests. The first thing I’m running into is difficulty clicking on {{#link-to}} view helpers. The problem is that {{link-to}}
doesn’t provide any thing unique enough to use the click
helpers.
I tried using id
, but inside {{link-to}}
s inside an {{each}}
helper can’t use the same id multiple times:
Assertion failed: Attempted to register a view with an id already in use:
I’m thinking possible solutions are either to modify the html generated by {{link-to}}
to provide an .ember-link-view
class instead of .ember-view
. or to be able to pass in html data attributes into view helpers so we can have more granular targeting.
Thoughts?