Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

alexander-kapr/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

AltStyle によって変換されたページ (->オリジナル) /