{"id":24382953,"url":"https://github.com/melv-narrow/playwright-framework","last_synced_at":"2025-10-15T20:23:17.814Z","repository":{"id":272804694,"uuid":"917812374","full_name":"melv-narrow/playwright-framework","owner":"melv-narrow","description":"🎭 Modern Playwright Test Automation Framework | TypeScript + Page Object Model + Allure Reporting | Cross-browser, parallel execution, and data-driven testing capabilities | Built with best practices and ISTQB standards","archived":false,"fork":false,"pushed_at":"2025-01-30T08:57:10.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T11:04:00.709Z","etag":null,"topics":["allure-report","api-testing","automated-testing","bdd","ci-cd","cross-browser-testing","e2e-testing","javascript","page-object-model","playwright","test-automation","test-framework","testing","typescript","web-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melv-narrow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-16T17:34:18.000Z","updated_at":"2025-06-30T07:36:31.000Z","dependencies_parsed_at":"2025-08-25T10:26:35.098Z","dependency_job_id":"b3f3adb5-c16c-4fe7-a724-56eccaa53488","html_url":"https://github.com/melv-narrow/playwright-framework","commit_stats":null,"previous_names":["melv-narrow/playwright-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/melv-narrow/playwright-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melv-narrow%2Fplaywright-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melv-narrow%2Fplaywright-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melv-narrow%2Fplaywright-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melv-narrow%2Fplaywright-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melv-narrow","download_url":"https://codeload.github.com/melv-narrow/playwright-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melv-narrow%2Fplaywright-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279110907,"owners_count":26105907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allure-report","api-testing","automated-testing","bdd","ci-cd","cross-browser-testing","e2e-testing","javascript","page-object-model","playwright","test-automation","test-framework","testing","typescript","web-testing"],"created_at":"2025-01-19T10:11:08.567Z","updated_at":"2025-10-15T20:23:17.768Z","avatar_url":"https://github.com/melv-narrow.png","language":"TypeScript","readme":"# Playwright Test Automation Framework\n\nA modern, maintainable test automation framework built with Playwright and TypeScript, following ISTQB standards and best practices.\n\n## Features\n\n- Page Object Model design pattern\n- Cross-browser testing support\n- Parallel test execution\n- Allure reporting with detailed steps and attachments\n- Screenshot and video capture on failure\n- Environment management\n- API testing support\n- TypeScript type safety\n- Comprehensive logging\n- Custom test fixtures\n- Data-driven testing with CSV support\n- Behavior-driven test organization with Allure labels\n\n## Prerequisites\n\n- Node.js (v16 or higher)\n- npm (v7 or higher)\n- Supported browsers (Chrome, Firefox, Safari)\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd playwright-framework\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Install Playwright browsers:\n```bash\nnpx playwright install --with-deps\n```\n\n## Configuration\n\n1. Environment Variables:\n   Create a `.env.{environment}` file (e.g., `.env.dev`, `.env.staging`) with:\n```env\nBASE_URL=\u003cyour-application-url\u003e\nAPI_KEY=\u003cyour-api-key\u003e\nLOG_LEVEL=info\n```\n\n2. Update test data in:\n   - `src/data/constants.ts` for static test data\n   - `tests/data/*.csv` for data-driven tests\n\n## Running Tests\n\n```bash\n# Run all tests\nnpm test\n\n# Run tests with UI mode\nnpm run test:ui\n\n# Run tests in headed mode\nnpm run test:headed\n\n# Run specific test file\nnpm test tests/e2e/login.spec.ts\n\n# Run tests with specific tag\nnpm run test:smoke\nnpm run test:regression\n\n# Run tests in specific browser\nnpm test -- --project=chromium\nnpm test -- --project=firefox\nnpm test -- --project=webkit\n\n# Generate and open Allure report\nnpm run report\n```\n\n## Project Structure\n\n```\nplaywright-framework/\n├── src/\n│   ├── pages/          # Page Object Models\n│   ├── fixtures/       # Custom test fixtures\n│   ├── helpers/        # Helper functions\n│   ├── data/          # Test data and constants\n│   └── utils/         # Utility functions\n├── tests/\n│   ├── e2e/           # End-to-end tests\n│   ├── api/           # API tests\n│   └── data/          # Test data files (CSV, JSON)\n├── config/            # Configuration files\n├── docs/             # Documentation\n└── reports/          # Test reports\n```\n\n## Test Organization\n\n1. **Test Categories**\n   - E2E Tests: `@e2e`\n   - API Tests: `@api`\n   - Smoke Tests: `@smoke`\n   - Regression Tests: `@regression`\n\n2. **Allure Labels**\n   - Epic: High-level feature area\n   - Feature: Specific feature\n   - Story: User story or test scenario\n\n## Best Practices\n\n1. Follow Page Object Model pattern\n2. Write descriptive test names\n3. Use data-testid for element selectors\n4. Keep tests independent\n5. Use appropriate waiting strategies\n6. Handle errors gracefully\n7. Document new features and changes\n8. Use Allure steps for better reporting\n9. Implement data-driven tests where applicable\n10. Add TypeScript type checking in CI pipeline\n\n## Playwright Tools\n\n1. **VS Code Extension**\n   - Install the Playwright VS Code extension for better development experience\n   - Use the test generator to create tests\n   - Debug tests directly in VS Code\n\n2. **Trace Viewer**\n   - View test execution timeline\n   - Inspect DOM snapshots\n   - Analyze network requests\n   - Debug test failures\n\n3. **UI Mode**\n   - Interactive test development\n   - Time travel debugging\n   - Watch mode for tests\n\n## Documentation\n\n- [Contributing Guidelines](CONTRIBUTING.md)\n- [Technical Design](docs/TECHNICAL_DESIGN.md)\n- [Testing Standards](docs/TESTING_STANDARDS.md)\n- [Maintenance Guide](docs/MAINTENANCE_GUIDE.md)\n- [CI/CD Setup](docs/CI_CD_SETUP.md)\n\n## Support\n\nFor support, please open an issue in the repository. ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelv-narrow%2Fplaywright-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelv-narrow%2Fplaywright-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelv-narrow%2Fplaywright-framework/lists"}