In this POC we will work in a mocked API application free for personal test reqres using playwright framework to do this tests. In this test we use these verbs (GET, POST, PUT and Delete) to validate Http status and some payload texts. In the playwright.config we use baseURL to define a default URL and in the tests, we use the endpoints for the tests.
Clone the project
https://github.com/vitorc/playwright-ts-poc.git
Access path playwright-ts-poc:
cd ../playwright-ts-poc
Playwright install:
npx playwright install
Dependencies install:
npm install
Testing Locally:
npm run test
Testing using Docker:
Install docker
Run the command below to build and start the Docker:
docker-compose up --build
- MIT license
- Copyright 2023 © Vitor Cardoso.