hinthealth / behave

Front-end testing helpers
MIT License
1 stars 0 forks source link

clicking (or probably finding) has unexpected behavior when things are nested #21

Open blakewest opened 9 years ago

blakewest commented 9 years ago
<td>
  <div class="btn btn-primary" ng-click="editEnrollee(employee)">Edit</div
</td>

doing click('Edit') didn't work. And find('Edit') ended up showing the td. It seems like it should have shown the div. if I put a test-me on the div, and then click('edit-button'), it works.