How idavidov13/playwright-framework works
Project type and purpose
• This is an open-source automation framework built on Playwright in TypeScript.
• Its purpose is to provide a reusable, configurable testing suite for both UI (Page Object Model) and REST API testing, with schema validation, custom fixtures, environment management, and CI/CD integration.
File structure
• Top-level “fixtures” folder holds custom fixtures for API and POM layers.
• “pages/clientSite” contains Page Object classes encapsulating UI interactions.
• “tests/API” and “tests/clientSite” contain the specs for API and UI tests respectively.
• “test-data” holds JSON files used to parameterize tests.
• Playwright configuration and environment (.env) files drive test setup.
• “.github/workflows” defines three CI pipelines (container, custom runner, default runner).
README for additional insights
• Uses Page Object Model pattern for UI.
• Supports REST API testing + Zod schema validation.
• Environment variables configurable per environment (.env.dev, etc.).
• npm scripts define grouped test runs (smoke, regression, full suite).
• GitHub Actions stages smoke → sanity → API → regression, with artifacts.