Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cypress testing to the project #4

Open
4 tasks done
g-elwell opened this issue Oct 4, 2023 · 0 comments
Open
4 tasks done

Add Cypress testing to the project #4

g-elwell opened this issue Oct 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@g-elwell
Copy link
Member

g-elwell commented Oct 4, 2023

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants