Libraries / Playwright Tools

Playwright Tools

A collection of utilities for writing Playwright tests, including browser actions, HAR-based request recording and replay, and component testing fixtures.

playwright-tools

A library of additional utilities for writing tests using Playwright Test.

npm i -D @gravity-ui/playwright-tools

The package contains several subdirectories with utilities for different purposes. You should import from these subdirectories, for example:

import { matchScreenshot } from 'playwright-tools/actions';
  • actions — Browser actions.
  • auth/storage — Authentication functions for saving and restoring browser storage snapshots.
  • component-tests — Utilities and fixtures for Playwright Component Testing.
  • fixtures — Fixtures for passing values into tests.
  • har — Functions for working with HAR request dumps.
  • config — Base configuration.
  • utils — Helper functions.

You can learn more about Playwright and how to configure it in the Playwright documentation.

Maintainers

@Avol-V SwinX @vegancat63

About library
Support the library with a star
Version
2.0.1
Last update
27.02.2026
Repository
github.com/gravity-ui/playwright-tools
License
MIT License
Maintainers
Contributors