Generates maintainable TypeScript Page Object Models (POMs) for Playwright using best-practice data-testid locators.
This skill streamlines the creation of reusable Page Object Models for Playwright test suites, ensuring cleaner and more maintainable end-to-end tests. By automatically generating TypeScript classes that encapsulate page-specific locators and actions, it enforces the use of robust data-testid selectors while providing a standardized structure for navigation, user interactions, and assertion getters. It is ideal for teams looking to scale their test infrastructure without duplicating code or creating brittle test scripts.
Key Features
01Automatic TypeScript POM class generation
020 GitHub stars
03Type-safe getter methods for assertions
04Integrated JSDoc documentation for methods
05Encapsulated action and navigation methods
06Mandatory data-testid locator enforcement
Use Cases
01Refactoring legacy test scripts into the Page Object Model pattern
02Building scalable test suites for complex web applications
03Onboarding new features with standardized E2E test structures