Fixtures

Central fixture pattern for Playwright + TypeScript test automation — single base-pages-fixture.ts file that pre-wires every page object, the browserPage root fixture (test-scoped page + worker-scoped browser), alphabetical ordering rule, import-via-path-alias pattern, and Pages interface for type safety. Use when adding a new page object to the fixture registry, when fixing 'not a function' errors from wrong fixture dependencies, when test files have lots of manual page-object instantiation, or when reviewing fixture registration order.

antongulin f6b7898 2 files · 11.5 KB Updated

File contents

antongulin/pw-kit/tree/main/skills/fixtures commit f6b789808c

Frequently asked questions

npx skillmds@latest add antongulin/fixtures