TestingWithFrank / Frank

Automated acceptance tests for native iOS apps
http://testingwithfrank.github.io/
Apache License 2.0
215 stars 57 forks source link

Add better error messages for selector matchers #15

Closed sgleadow closed 10 years ago

sgleadow commented 10 years ago

This adds better error messages to the be_true and be_false rspec matchers in the element exists Frank helpers.

I've been increasingly calling the frank helpers directly from my page models rather than using the built in cucumber steps, and I wasn't getting any useful error messages when elements didn't match, just true != false which doesn't give much context. I tried to add more useful messages that would say whether an element was found or not, and what the selector was.

MichaelBuckley commented 10 years ago

I like it.