I made a couple of cypress tests, however I can't seem to make cypress locate the spec files, it only locates the cypress\e2e folders/files (the tutorial folders), when I want them to access the tests\e2e\specs folder
I tried changing the cypress.json by:
{
"pluginsFile": "tests/e2e/plugins/index.js",
"integrationFolder": "tests"
}
(Also tried "tests/e2e/specs" and "PintAndPillageFrontend/tests/e2e/specs") but that didn't seem to work
The thing that sticks out is you have
cypress.json
which is the old way (pre version 10) of configuring, yet the project is obvious structured for the current setup of Cypress.Therefore, I'm going to recommend that in
cypress.config.js
(which should be in the project root) you add aspecPattern
setting that includes an array of all the paths that may contain a spec you want Cypress to run.configuration#e2e
Sticking to one spec naming pattern such as
*.cy.js
will give Cypress and other people more clarity about your tests.