meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
497 stars 118 forks source link

#121: Fix issue with compare modal not opening in GUI. #207

Open archfz opened 2 years ago

archfz commented 2 years ago

cy.readFile is a function to register a command on the cypress command loop. This command loop does not run while tests are not running. Thus the promise generate by cy.readFile will never resolve when called outside of an executing test. The solution is to bypass the command loop and call directly the underlying api.

Fixes also #121 hopefully.

archfz commented 2 years ago

Might be related https://github.com/archfz/cypress-terminal-report/issues/145