nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.8k stars 1.31k forks source link

assert.visible failure output is too verbose #2035

Closed spnraju closed 5 years ago

spnraju commented 5 years ago

Reporting a bug

assert.visible is failing with verbose output. I could reproduce this in 1.0.19 and 1.0.18. Could not try with any other version. This could be an issue with some other APIs under assert.

image

spnraju commented 5 years ago

Hi @beatfactor got any chance to look at this?

beatfactor commented 5 years ago

@spnraju Is there any improvement in v1.1.7?

spnraju commented 5 years ago

Thank you @beatfactor for looking into this.

Looks like it is fixed with the new version. But could see the error messages itself have changed. Is that how it should work? Screenshot below.

image

beatfactor commented 5 years ago

The error is probably not necessary if the assertion is failed already.

spnraju commented 5 years ago

Does it mean we are good and can close this issue?

beatfactor commented 5 years ago

No, if the assertion is the same as the error, than the error shouldn't be counted, so that needs to be fixed.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.

spnraju commented 5 years ago

Hi @beatfactor , I have tried with the latest version and the issue is still there.

beatfactor commented 5 years ago

This should be fixed in v1.2.

spnraju commented 5 years ago

Hi @beatfactor , Thank you for the fix. I have tried with latest v1.2.1 and below is the screenshot. I hope this is how it should work.

image

beatfactor commented 5 years ago

Yes, PR #2187 will address the error logging.