Skip to content

Testing

Kristian Kähkönen edited this page Oct 25, 2024 · 5 revisions

Testing strategy

Before creating a PR, the app will be tested manually and automatically before merging. We have a GitHub pipeline, that runs type-checks and runs automatic Playwright tests.

Tools

  • Playwright E2E tests
  • Hoppscotch and Postman.

Manual test cases

Test case 1

Authentication and authorization

Description

  • errors are displayed when logging in / creating a new user
  • validation works
  • user is redirected to logging in if enters a page that needs authorization

Steps to perform

  • Can be mostly automated using Playwright

Expected result

All mentioned cases in description happen

Test case 2

API endpoints security

Description

Check that user can only access their info on all routers.

Steps to perform

Create requests using Hoppscotch / Postman or alternative app

Expected result

User can only access their own information

Clone this wiki locally