-
Notifications
You must be signed in to change notification settings - Fork 54
Fix pathing issue + Allure diff screenshot fix + fix warnings #51
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
Fix pathing issue + Allure diff screenshot fix + fix warnings #51
Conversation
fix issue where if codecept is run outside the test root, relative paths for baseScreenshots would not be found
…hose calls. Replace fs.writeFile with fs.writeFileSync to ensure the diff image is written before attached to allure. Fix JSDoc warnings Fix "err" scoping warning Change undefined checks to check if element is either null or undefined Remove unused parameter Add check to ensure size is populated fix overcomplicated ternary statement
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.
Since you merged changes from both PR, could you please close the older one. Thanks a lot for your contribution.
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.
thanks, it will be merged for Friday release.
hey, did a last minute push to update variable names and error message for mismatching image sizes so that feedback is easier to work with |
@ashiots2 try the new version and let me know if you find any issues |
Hi @puneet0191 , @ashiots2 I ran into the same issue, the diff image can't be added in the allure report. Could you please help to suggest what I can do if i want to see the diff in allure report? Please help to suggest. thanks. |
hey @gtycherry, I am a bit confused, under the "I see visual diff" step (that failed), I can see it has 3 attachments as expected (base, actual and diff). Therefore you should be able to see it once you expand that step in allure. Does that make sense or have I misunderstood your problem? |
Hi @ashiots2 Yes, My fault, there are 3 screenshot attached. thanks. |
Fixed pathing issue where when codecept is started from directory other than test root, baseFolder would not be found
Replace fs.writeFile with fs.writeFileSync to ensure the diff image is written before attached to allure.
Fix JSDoc warnings
Fix "err" scoping warning
Change undefined checks to check if element is either null or undefined
Remove unused parameter
Add check to ensure size is populated
fix overcomplicated ternary statement