Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better error messages for selector matchers #15

Merged
merged 1 commit into from
Jan 19, 2014

Conversation

sgleadow
Copy link
Contributor

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
Copy link
Contributor

I like it.

MichaelBuckley added a commit that referenced this pull request Jan 19, 2014
…ctor-matchers

Add better error messages for selector matchers
@MichaelBuckley MichaelBuckley merged commit 049d022 into master Jan 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants