Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.69 KB

README.md

File metadata and controls

71 lines (45 loc) · 1.69 KB

Playwright E2E Testing Project

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

Prerequisites

Before running the tests, ensure you have the following software installed on your system:

  • Node.js version 18.10.0 or later
  • Yarn (for dependency management)

Getting Started

  1. Clone this repository and navigate to the project folder:

    git clone <repository_url>
    cd playwright-sample
  2. Install project dependencies using Yarn:

    yarn install
  3. 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
  4. Run the end-to-end tests:

    yarn playwright test

    This command will execute the Playwright tests against the running web application.

Structure

The project has the following structure:

  • apps/api: API application for managing tasks
  • apps/web: Web application for task management
  • tests: Contains Playwright test scripts

Contributing

Contributions are welcome! If you find any issues or improvements, please submit a pull request or create an issue.

License

This project is licensed under the MIT License.