Closed peterjaap closed 2 years ago
So right now we have;
cypress/integration/cart/*.spec.js
cypress/integration/checkout/*.spec.js
cypress/integration/product/*.spec.js
etc
We want to have;
cypress/integration/hyva/cart/*.spec.js
cypress/integration/hyva/checkout/*.spec.js
cypress/integration/hyva/product/*.spec.js
etc
cypress/integration/luma/cart/*.spec.js
cypress/integration/luma/checkout/*.spec.js
cypress/integration/luma/product/*.spec.js
Same goes for fixtures and page objects.
When we have that, we can easily see which files are 100% the same, or which are very similar, and see if we can refactor to a certain base point. If not, we just leave them separate files.
@vladhorielov thanks, that's awesome! Few points;
.DS_Store
files?selectors
dir into the hyva
and luma
dirs?Right now this is the structure;
cypress/fixtures/hyva
cypress/fixtures/luma
cypress/fixtures/selectors/hyva
cypress/fixtures/selectors/luma
I want it to be this;
cypress/fixtures/hyva/selectors
cypress/fixtures/luma/selectors
Another question; why are you manually removing localstorage and cookies? Cypress removes those automatically on each run.
@peterjaap Could you fix the merge conflicts? - done ✅ Could you remove all the useless .DS_Store files? - done ✅ Could you move the selectors dir into the hyva and luma dirs? - done ✅
@vladhorielov thanks for your work! I do have a number of issues with this though.