Skip to content
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

(bug) Config cannot be found. when importing cypress-plugin-snapshots/command #112

Closed
CyrilKrylatov opened this issue May 7, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@CyrilKrylatov
Copy link

Describe the bug
Hello everyone,

The import 'cypress-plugin-snapshots/commands' part in support/index.js as described here seems to not work as it's not importing the commands.

To Reproduce
Steps to reproduce the behavior:
0. Go to my cypress/ folder

  1. yarn add -D cypress-plugin-snapshots
  2. open ./support/index.js, put import 'cypress-plugin-snapshots/commands' in there
  3. launch cypress with the gui part
  4. see the following error:

Config cannot be found.

This error originated from your test code, not from Cypress.

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Expected behavior
To not have this error

Screenshots
ss_ 1497
ss_ 1499

Desktop (please complete the following information):

  • OS: macOS Mojave 10.14.6 (18G95)
  • Cypress Version 4.5.0 / cypress-plugin-snapshots Version 1.3.0

Additional context
Thank you for your answers and thank you for this plugin!

@CyrilKrylatov CyrilKrylatov added the bug Something isn't working label May 7, 2020
@meinaart
Copy link
Owner

meinaart commented May 7, 2020

Is fixed in latest version.

@CyrilKrylatov
Copy link
Author

CyrilKrylatov commented May 8, 2020

Thank you for your quick reply!

I updated cypress-plugin-snapshots to its last version (1.4.3) and now I have the following error with the same configuration as above:

cypress_runner.js:171559 Error:    CypressError: `cy.task('cypress-plugin-snapshot:getFile')` failed with the following error:

The 'task' event has not been registered in the plugins file. You must register it before using cy.task()

Fix this in your plugins file here:
false

https://on.cypress.io/api/task

Because this error occurred during a `before all` hook we are skipping all of the remaining tests.

Did I miss something?

Thank you!

mrtkrcm pushed a commit to mrtkrcm/cypress-plugin-snapshots that referenced this issue Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants