hinthealth / behave

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

Exact matching doesn't always work #7

Closed blakewest closed 10 years ago

blakewest commented 10 years ago

To replicate: Put this in the tempalte: %a.btn.btn-secondary(ui-sref="^") Back to All Invoices

Or this... %button.btn.btn-md.btn-primary(type='submit' ng-hide="data.invoice.human_status === 'paid'" bs-modal data-template="/templates/invoices/mark_as_paid") Mark as Paid

Do find('Mark as Paid') and it returns nothing. Or find('Back to All Invoices') and it returns nothing.

I would expect it to return the nodes in the tree that have text exactly matching those.