This folder contains end-to-end tests implemented using Playwright.
The tests are split in three folders:
-
unauthenticated: these tests are for testing behaviour for users that are not authenticated. -
authenticated: these tests are for testing behaviour for authenticated users. The depend on a page context stored in the ./unauthenticated/register.spec.ts test, which contains the cookie for the newly registered user account, which then will make the page to be automatically logged in. This allows to re-use the logged in state so it does not have to be repeated for every test. -
clean-up: these tests will be run at the end, and test for example that the user can delete their account.