webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Cypress Tests - Batch 6

Open Asmaloth opened this issue 1 year ago • 2 comments

Changes

  • Created new test for validating newly created and edited blocks with headers
  • Refactored graphQL method for creating blocks so that it can now create blocks containing headers
  • Replaced all usages of nanoid as suggested here by Pavel https://github.com/webiny/webiny-js/pull/3658#discussion_r1378694682
  • Refactored usages of cy.visit and Cypress.env with cy.visitWebsite for better readability.

How Has This Been Tested?

Using eslint and CI checks.

Documentation

No Jira ticket currently exists but for a description of the required changes visit: https://www.notion.so/webiny/Webiny-Testing-43be8707c3df48cbbf87d06a57720faa

Asmaloth avatar Jan 16 '24 11:01 Asmaloth

/cypress

adrians5j avatar Jan 17 '24 08:01 adrians5j

Cypress E2E tests have been initiated (for more information, click here). :sparkles:

github-actions[bot] avatar Jan 17 '24 08:01 github-actions[bot]