-
Notifications
You must be signed in to change notification settings - Fork 208
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
Is it possible to show descriptive text if a test fail? #129
Comments
I second this and add the following use scenario: For example for multiple very similar checks the time & coding effort is reduced by checking with multiple expect() in one test case like this: browser.setValue('input[id="id_meetingproject"]', ""); // empty input
browser.setValue('input[id="id_meetingname"]', ""); // empty input
browser.click("#btnMeetingSeriesSave"); // try to save
expect(browser.isVisible("#btnMeetingSeriesSave")).to.be.true; // dialog still open!
browser.setValue('input[id="id_meetingproject"]', "XXX");
browser.setValue('input[id="id_meetingname"]', ""); // empty input
browser.click("#btnMeetingSeriesSave"); // try to save
expect(browser.isVisible("#btnMeetingSeriesSave")).to.be.true; // dialog still open!
browser.setValue('input[id="id_meetingproject"]', ""); // empty input
browser.setValue('input[id="id_meetingname"]', "XXX");
browser.click("#btnMeetingSeriesSave"); // try to save
expect(browser.isVisible("#btnMeetingSeriesSave")).to.be.true; // dialog still open! If one of these expect() fails, you only see this in the console:
It would be great to find out which expect() did fail with a small message... |
@derwok does that example currently work? I'm kind of surprised that |
Sorry - i was using "chai" expect() and was thinking I use this exepct() package. |
@derwok still surprised that chai manages to execute the command without |
Example:
It could be the second argument of
expect()
.The text was updated successfully, but these errors were encountered: