Closed JoshuaKGoldberg closed 9 months ago
Describe the bug
With this code in a test:
cy.visit('http://localhost:3100'); cy.document().toMatchImageSnapshot();
Cypress never updates the snapshot file, and always marks it as updated:
Error: CypressError: `cy.readFile()` must be passed a non-empty string as its 1st argument. You passed: ``.
To Reproduce Steps to reproduce the behavior:
cy.document().toMatchImageSnapshot()
Expected behavior Two things:
readFile
afterAll
Screenshots
Desktop (please complete the following information):
cypress-plugin-snapshots
Additional context Passing a name to the toMatchImageSnapshot call doesn't fix the issue.
name
toMatchImageSnapshot
Closing out my old issues for repos I no longer have context on. If anybody has a need for what this issue was asking about, I'd encourage them/you to file a new issue. Cheers!
Describe the bug
With this code in a test:
Cypress never updates the snapshot file, and always marks it as updated:
To Reproduce Steps to reproduce the behavior:
cy.document().toMatchImageSnapshot()
to a testExpected behavior Two things:
readFile
fails, it should fail the CypressafterAll
command instead of being silently ignoredreadFile
shouldn't fail 😄Screenshots
Desktop (please complete the following information):
cypress-plugin-snapshots
Version: 1.4.4Additional context Passing a
name
to thetoMatchImageSnapshot
call doesn't fix the issue.