Welcome to the Playwright E2E Testing project! This repository contains end-to-end tests using Playwright and TypeScript for a local web application. The application manages tasks with functionalities like Create, Read, Update, and Delete (CRUD). The application can be accessed locally at http://localhost:3000.
The WEB and API applications used in the tests were developed by Fernando Papito linkedin
Before running the tests, ensure you have the following software installed on your system:
-
Clone this repository and navigate to the project folder:
git clone <repository_url> cd playwright-sample
-
Install project dependencies using Yarn:
yarn install
-
Start the target application locally:
a. API:
cd apps/api yarn install yarn db:init yarn dev
b. Web:
cd apps/web yarn install yarn dev
-
Run the end-to-end tests:
yarn playwright test
This command will execute the Playwright tests against the running web application.
The project has the following structure:
apps/api
: API application for managing tasksapps/web
: Web application for task managementtests
: Contains Playwright test scripts
Contributions are welcome! If you find any issues or improvements, please submit a pull request or create an issue.
This project is licensed under the MIT License.