Skip to content

introduce end-to-end system integration tests #1149

@jelhan

Description

@jelhan

So far the client and the API are only tested in isolation. The API is mocked in the client tests using Mirage. Croodle does not have any end-to-end system integration tests ensuring that the client and API work together as expected. This introduced the risk that a change lands in the client which is incompatible with the API. Or the other way around.

Additionally we lack the ability to test provided integrations such as a Docker image. We don't have any tests, which we could run against a Docker image to ensure that it's actually working as expected. Such tests are a prerequisite for #1128 in my opinion.

Playwright is the state-of-the-art tool for writing such end-to-end system integration tests. We should introduce Playwright and write some system integration tests. We don't need to cover all user flows. Most importantly are likely:

  1. Create a poll
  2. View a created poll
  3. Participate in a poll
  4. View participants of a poll

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions