-
Notifications
You must be signed in to change notification settings - Fork 29
Description
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:
- Create a poll
- View a created poll
- Participate in a poll
- View participants of a poll