Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.17 KB

File metadata and controls

37 lines (23 loc) · 1.17 KB

@languages-learner/playwright-utils

Shared Playwright helpers and fixtures for tests.

Purpose

The base layer of the test-utilities stack: reusable Playwright fixtures (screenshots, locale navigation, network mocking, auth storage) that the higher-level *-tests-utils packages build on.

Public API / exports

From src/index.ts:

  • Fixtures: expectScreenshotFixture, goToWithLocaleFixture, mockNetworkFixture.
  • auth-storage helpers.
  • waitImagesLoaded — action helper.
  • TEST_LOCALE — constant; type Theme — type.

Depends on

  • @languages-learner/har-sanitizer — sanitize network fixtures.
  • @languages-learner/react-router-utils — locale-aware navigation helpers.

Used in

  • @languages-learner/app-core-tests-utils, @languages-learner/app-integration-tests-utils, @languages-learner/component-core-tests-utils.

Notes

  • This is the shared base for both component and app/integration test utilities; keep app-specific logic out of it.

Links