Skip to content

Testing

Niko Heikkilä edited this page Nov 7, 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

Test case 3

Chat Page

Description

  • Verify the Chat page loads correctly.
  • Verify that a new thread can be created and a message can be sent.
  • Verify that a thread can be deleted.

Steps to perform

  • Automated using Playwright.

Expected result

All cases in the description happen.

Clone this wiki locally