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
print html path if savePageSource is true. #590
Conversation
Hi @hyunil-shin https://travis-ci.org/codeborne/selenide/builds/268212431?utm_source=github_status&utm_medium=notification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, fix checkstyle issues
@BorisOsipov Thank you for your feedback. I got many "Missing a Javadoc comment" errors in my environments (gradle check). How can I get the same result as Travis CI?
|
@hyunil-shin yes it's windows issue :(. On linux gradle check works well. |
@@ -39,7 +39,15 @@ public static String screenshot(String screenshotPath) { | |||
if (!Configuration.screenshots) { | |||
return ""; | |||
} | |||
return "\nScreenshot: " + screenshotPath; | |||
if (Configuration.savePageSource) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if Configuration.screenshots=false and Configuration.savePageSource=true
we will not have PageSource in error message. I guess it's wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind. I look through code and understand why it is so.
Fix tests and small rewording.
Codecov Report
@@ Coverage Diff @@
## master #590 +/- ##
============================================
+ Coverage 60.17% 60.41% +0.24%
- Complexity 723 728 +5
============================================
Files 134 134
Lines 2644 2650 +6
Branches 267 269 +2
============================================
+ Hits 1591 1601 +10
+ Misses 947 943 -4
Partials 106 106
Continue to review full report at Codecov.
|
@hyunil-shin Thank you! |
#210