No description
  • Python 44.9%
  • TypeScript 22.8%
  • HTML 16%
  • Rust 10.4%
  • PLpgSQL 2.7%
  • Other 3.2%
Find a file
2026-01-20 11:55:45 +01:00
Part3 Ajout du journal de bord pour le TP sur les tests d'endpoints HTTP en TypeScript 2026-01-20 11:55:45 +01:00
ts step 5 2026-01-13 16:59:58 +01:00
package-lock.json second test with cogen 2026-01-13 15:45:54 +01:00
README.md added testing files 2026-01-13 14:24:27 +01:00
testing_plan.pdf Upload files to "/" 2026-01-05 15:32:41 +00:00

Playwright Kata

Goal: write end-to-end browser integration tests for a web application

Step 1

Choose a programming language and make sure you can run the add-team test - you'll have to fix the URL (see the TODO comment)

Step 2

Use the playwright codegen command to generate one test and add it to the repository in a new file next to the existing add-team test.

In Java, the command line looks like this:

$ ./mvnw exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="codegen https://<letter>.<group>.hr.dmerej.info"

Step 3

  • Add a test for one of the bugs youve fond during the first session - but without using codegen this time.
  • Refactor so that you use a test fixture between each test to reset the database

Step 4

Add more tests for some of the bugs youve found - make sure they are failing for the right reason, with good error messages. Stop when you have 3 or 4 different tests

Step 5

Refactor using the Page object model design pattern

Step 6

Compare the code written using the Page Object Model with the one playwright automatically generated.