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

integration/hyva/homepage.spec.js import path to cart.json fixture is wrong #55

Closed
Vinai opened this issue Jul 26, 2022 · 1 comment · Fixed by #57
Closed

integration/hyva/homepage.spec.js import path to cart.json fixture is wrong #55

Vinai opened this issue Jul 26, 2022 · 1 comment · Fixed by #57

Comments

@Vinai
Copy link
Collaborator

Vinai commented Jul 26, 2022

Describe the bug

Running:  homepage.spec.js
Oops...we found an error preparing this test file:
  > cypress/integration/hyva/homepage.spec.js
The error was:
Error: Webpack Compilation Error
./cypress/integration/hyva/homepage.spec.js
Module not found: Error: Can't resolve '../../../fixtures/hyva/selectors/cart.json' in '/data/web/public/cypress/integration/hyva'

To Reproduce
Steps to reproduce the behavior:

  1. Run the tests in the current main branch head

Expected behavior
Test can compile

Additional context
The path to the cart.json has one ../ to many at https://github.com/elgentos/magento2-cypress-testing-suite/blob/main/cypress/integration/hyva/homepage.spec.js#L6

@Vinai
Copy link
Collaborator Author

Vinai commented Jul 26, 2022

A similar bug is also present in cypress/integration/hyva/cms/cms-pages.spec.js wheere the paths to fixtures/hyva/cms.json and fixtures/hyva/selectors/cms.json have a ../ too much.

https://github.com/elgentos/magento2-cypress-testing-suite/blob/main/cypress/integration/hyva/cms/cms-pages.spec.js#L1-L2

This was referenced Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant