Skip to content

The example how to create tests with playwright api and use simple patterns

Notifications You must be signed in to change notification settings

alex-kapranchuk/api-playwright-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Overview

This project utilizes a set of classes and patterns to ensure modular, maintainable, and testable code. Below is an overview of the main components and their roles.

Components

PlaywrightSingleton

Provides a single Playwright instance for all tests.

PostFactory

Used to create data for queries.

ApiCommand

An interface for implementing the Command pattern, which makes the code more modular and understandable.

ApiClient

Initialized using Singleton for Playwright.

ApiAssertions

A class for validating API responses.

ApiTest

Uses a PlaywrightSingleton to initialize a Playwright and passes it to the ApiClient.

About

The example how to create tests with playwright api and use simple patterns

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages