webiny-js
webiny-js copied to clipboard
[TEST] Cypress tests for categories - MS3
Changes
This PR contains new cypress tests on the categories (milestone 3). It also includes new data-test-ids on elements that the tests interact with.
How Has This Been Tested?
All the new tests passed on local environment.
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
Checked the Cypress run, a couple of errors I spotted:

BTW, a bit of a background...
We run Cypress test suites twice, on two different Webiny setups: one with just DynamoDB database, the other one DynamoDB + ElasticSearch. Ultimately, both test suites need to pass.
Also, usually, when we see the same tests failing on each setup, that probably means it's not flakiness, it's actually something not working as expected (be it on the app code level or Cypress test code level). If a test is failing just on one setup (e.g. on DynamoDB + ElasticSearch setup), that usually is a hint that a test is flaky.
In the above sshot, we can see categories.spec.js failing only on the left side. That could be flakiness.
On the other hand, searchAndSortCategories.spec.js and importExportPages.spec.js fails on both setups. As mentioned, a good indicator that something is actually wrong.
In any case, we'll need to inspect these before we merge. Let me know if you'll need any extra help here.
@razvanvancea
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress
Cypress E2E tests have been initiated (for more information, click here). :sparkles:
/cypress