Skip to content

Add Cypress testing to the project #4

@g-elwell

Description

@g-elwell

This project currently lacks end-to-end testing. As a result, we could miss bugs that only appear when multiple components interact.

We previously added the initial Cypress setup with WP Cypress and Cucumber in #3, however we no longer plan to use Cucumber so need to update this, rewrite any existing tests and add new tests to obtain the level of coverage we desire.

Goals:

  • Update Cypress config to remove Cucumber
  • Remove any Cucumber related files and code
  • Re-write any existing tests to use Cypress without Cucumber
  • Add new tests
  • Integrate with CI/CD to ensure tests run on every pull request/update via our existing CI/CD pipeline
  • Update any relevant readme files or wikis with information about how to run and add new tests

Tests to consider:

  • Non-admins should not be able to see/add release note posts
  • Admins should be able to see/add release note posts
  • All users should be able to view the release notes page
  • All users should be able to see the release note widget in the dashboard header

Other considerations:

  • How can we create a seeder which inputs release notes with accurately formatted post-content and any required metadata?

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions