I’m testing an Ember app and I’ve got a link inside a table.
I can get to the link by the selector:
$('tr:nth-child(1) td:nth-child(3) a')
In my test I have:
click($('tr:nth-child(1) td:nth-child(3) a'));
But after doing
console.log(currentURL()); I am not on the link that the above click should have taken me to.
Do I need to be more specific with the link to click? Or am I using click wrong? Or is there a different test helper I should be using?