How reutenkoivan/pw-codeceptjs works
Main Components
a. Core Package Structure:
• Test Package (@pw-codeceptjs/test)
• Base Extensions Package
• Utils Extensions Package
• Test Fixture Package
b. External Dependencies:
• Playwright
• CodeceptJS (integration layer)
Key Architectural Elements
Top Layer - Test Execution Layer:
• How test files interact with the framework
• Test fixtures and page objects
Middle Layer - Core Framework Layer:
• Test package with CodeceptJS-style commands
• Extensions system
• Utility functions
• Fixture builders
Bottom Layer - Integration Layer:
• Playwright integration
• Browser automation
Component Relationships
• How test files use the fixture system
• How fixtures utilize the base extensions
• How utils are consumed across the system
• Integration points with Playwright
Specific Elements
[Test Files] → [Test Package]
• ↓
[Base Extensions] ← [Test Fixture] → [Page Objects]
• ↓ ↓
• [Utils Package] → [Playwright]
Additional Details
A section showing:
• Build/CI workflow integration
• Documentation generation flow
• Package management relationships
Notes for Implementation
• Keep the main testing flow prominent
• Extensibility points
• Clear separation between framework code and test code
• Configuration points