Skip to content

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

Merged
merged 4 commits into from
Nov 1, 2019

Conversation

ashiots2
Copy link

@ashiots2 ashiots2 commented Oct 23, 2019

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

s_ashiotis added 3 commits October 22, 2019 15:00
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
Copy link
Member

@puneet0191 puneet0191 left a 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.

@ashiots2 ashiots2 changed the title Allure diff screenshot fix Fix pathing issue + Allure diff screenshot fix + fix warnings Oct 23, 2019
@ashiots2 ashiots2 requested a review from puneet0191 October 23, 2019 09:31
Copy link
Member

@puneet0191 puneet0191 left a 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.

@ashiots2
Copy link
Author

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 ashiots2 requested a review from puneet0191 October 31, 2019 09:24
@puneet0191 puneet0191 merged commit 021a7b4 into codeceptjs:master Nov 1, 2019
@puneet0191
Copy link
Member

@ashiots2 try the new version and let me know if you find any issues 1.8.0

@gtycherry
Copy link

gtycherry commented Jun 4, 2020

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.
image

Below is my package.json
image

@ashiots2
Copy link
Author

ashiots2 commented Jun 4, 2020

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?

@gtycherry
Copy link

Hi @ashiots2 Yes, My fault, there are 3 screenshot attached. thanks.

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.

3 participants