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

E2E test by Cypress #88

Open
mercs600 opened this issue Sep 5, 2023 · 0 comments
Open

E2E test by Cypress #88

mercs600 opened this issue Sep 5, 2023 · 0 comments

Comments

@mercs600
Copy link
Contributor

mercs600 commented Sep 5, 2023

We have discussed with @rogoit and concluded that it's worth implementing E2E tests. We've decided to house the tests in this repository. This decision was based on having the most up-to-date backend/frontend versions and a consistent database, which is essential for conducting E2E tests.

Here are the simplest test cases we can start with:

Core

  • Does the page return 202 code?
  • Does the non-existing page return 404 code?
  • Does the navigation return the correct links (which were added in backend)?
  • Has the language changed after navigating to the localized page?
    • Is the navigation translated?
    • Is the page content translated?
  • Does the redirection work?
  • Is the new frontend layout applied?
  • Is the new backend layout applied?
    • Is the content element displayed in the right column position?
  • Does the frontend render the correct component types?

Content Elements

Shared properties

Given our common approach to handling shared component properties, such as header and headerLayout, we can establish a foundational test for multiple components. This base test can then be used across various test cases.

  • Does the component display the correct header message
  • Does the component display the correct header level
  • Does the component display the correct header link
  • Does the component display the correct sub header

Specific Content Elements

Initially, I'd suggest focusing on the basics, like:

  • Text
  • Textpic
  • Textmedia

The next step will be implementing E2E testing on Github actions.

@rogoit, if there are any critical tests you'd like to add, please do so.

@mercs600 mercs600 assigned mercs600 and unassigned mercs600 Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant