Closed craitose closed 4 months ago
I closed this prematurely , it the expected png gets named incorrectly and the path link is not set correct in the report. please look into this.
@craitose I can't reproduce it with latest version (2.4.7) Can you upgrade to the latest version? Or anything I missed?
I have updated the test code, could you try again on the latest version?
@craitose I'm still unable to reproduce. Can you provide any screenshots regarding the problem?
@cenfun Sorry, I forgot to make the test fail, I have updated the test code and uploaded a screenshot of the issue.
@craitose I can not reproduce. Anyway, I post the test case to here: https://github.com/cenfun/monocart-reporter-examples/tree/main/tests/visual and the screenshot:
Seems the issue is similar to #67 Could you please check it and find if anything can help?
Or try to update the playwright to v1.44 and update the monocart-reporter to v2.4.9.
Check the image src
and make sure the image file is exists in your local dir
Thanks @cenfun, I have just checked the generated screen shots. These are what I saw in the folder [fashion-page-1-actual.png, fashion-page-1-diff.png, fashion-page-expected.png] . I then updated playwright to 1.44.1 and fashion-page-1-expected.png is now being generated.
Describe the bug Running Visual tests in playwright that compares snapshots and there if the difference between the expected snapshot and the actual snapshot the test will fail and a report will be generated. In the mono-cart report there 3 tabs under the attachments section [Diff, Actual, Expected], images are displayed when the Diff & Actual tabs are clicked but not when the Expected tab is clicked. The expected.png file is present in the test-results folder but is not linked to the report.
To Reproduce
Expected behavior When the mono-cart report is open and the user clicks on the expected tab under the attachments section - the expected.png image should display
Errors or Screenshots Any captured error messages, or add screenshots to help explain your problem.
Make a minimal reproduction
The simpler you can make it, the more likely we are to successfully verify and fix the bug.
Additional context Add any other context about the problem here. The expected image is renamed fashion-page-expected.png-1 yet the image is displayed in playwright's native reporter