I was not expecting that, since the only thing you're doing with that value is passing it to Cypress.log().
I had a theory that the double underscores were being stripped from the message string somewhere a long the line. To test this, I added two underscores the spec file name and triggered the error again. However, the underscores were in the error message, so we may be able to rule that out.
Versions
cypress
:v5.2.0
cypress-image-snapshot
:v3.1.1
Description
Here is the diff error message:
The path is:
However, the actual path to the screenshot is:
Note the underscores for
__diff_output__
.As a result, I can't copy and paste the path into the browser to view the image.
Exploring
If I log
diffOutputPath
andmessage
here https://github.com/palmerhq/cypress-image-snapshot/blob/master/src/command.js#L34-L55, then I see the correct values logged, but the incorrect value in the error message:I was not expecting that, since the only thing you're doing with that value is passing it to
Cypress.log()
.I had a theory that the double underscores were being stripped from the
message
string somewhere a long the line. To test this, I added two underscores the spec file name and triggered the error again. However, the underscores were in the error message, so we may be able to rule that out.