{"id":51324785,"url":"https://github.com/kasprzakqa/playwright-pytest-toolshop","last_synced_at":"2026-07-01T17:04:40.676Z","repository":{"id":367955093,"uuid":"1277805567","full_name":"kasprzakqa/playwright-pytest-toolshop","owner":"kasprzakqa","description":"E2E test automation for the Toolshop demo app - Python, Playwright, pytest: UI, REST API and accessibility, CI-gated.","archived":false,"fork":false,"pushed_at":"2026-06-28T11:39:34.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-28T13:17:43.461Z","etag":null,"topics":["accessibility-testing","api-testing","e2e-testing","page-object-model","playwright","pytest","python","qa-automation","test-automation"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/kasprzakqa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-23T07:50:06.000Z","updated_at":"2026-06-28T11:39:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kasprzakqa/playwright-pytest-toolshop","commit_stats":null,"previous_names":["kasprzakqa/playwright-pytest-toolshop"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kasprzakqa/playwright-pytest-toolshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasprzakqa%2Fplaywright-pytest-toolshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasprzakqa%2Fplaywright-pytest-toolshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasprzakqa%2Fplaywright-pytest-toolshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasprzakqa%2Fplaywright-pytest-toolshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasprzakqa","download_url":"https://codeload.github.com/kasprzakqa/playwright-pytest-toolshop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasprzakqa%2Fplaywright-pytest-toolshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35015067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["accessibility-testing","api-testing","e2e-testing","page-object-model","playwright","pytest","python","qa-automation","test-automation"],"created_at":"2026-07-01T17:04:39.841Z","updated_at":"2026-07-01T17:04:40.665Z","avatar_url":"https://github.com/kasprzakqa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toolshop Automation - Playwright + pytest\n\n[![CI](https://github.com/kasprzakqa/playwright-pytest-toolshop/actions/workflows/ci.yml/badge.svg)](https://github.com/kasprzakqa/playwright-pytest-toolshop/actions/workflows/ci.yml)\n[![Python 3.11+](https://img.shields.io/badge/python-3.11+-3776AB?logo=python\u0026logoColor=white)](https://www.python.org/)\n[![Playwright](https://img.shields.io/badge/Playwright-2EAD33?logo=playwright\u0026logoColor=white)](https://playwright.dev/python/)\n\nEnd-to-end test automation framework for the [Practice Software Testing](https://practicesoftwaretesting.com)\n(\"Toolshop\") application - UI journeys, REST API, and accessibility - built with Python,\nPlaywright (sync) and pytest, with the API layer gated continuously in GitHub Actions.\n\n## What it covers\n\n| Layer | Coverage |\n|-------|----------|\n| **API** | Products \u0026 catalog (schema-validated), pagination, 404, authentication (token + 401) |\n| **UI E2E** | Login (valid / invalid), catalog search, full checkout (cart -\u003e billing -\u003e payment -\u003e confirmation) |\n| **Accessibility** | axe-core scan gated on serious/critical, keyboard operability |\n\n## Design highlights\n\n- **Page Object Model** - locators live in page classes; tests read as scenarios.\n- **Role-first locators** - `get_by_role` / `get_by_placeholder` / `get_by_test_id`; no brittle CSS.\n- **Deterministic waiting** - Playwright web-first assertions only; zero `time.sleep`.\n- **Isolation** - authentication injected via `storage_state`, not re-driven per test.\n- **Typed API contracts** - `pydantic` models make a renamed/missing field fail loudly.\n- **Suite markers** - `smoke` (deploy gate) / `regression` / `sanity`, plus `api` / `a11y`.\n- **Parallel** - `pytest-xdist` (`-n auto`).\n\n## Project layout\n\n```\npages/        Page Object Model (base, login, home, product, checkout)\ntests/\n  conftest.py shared fixtures (API context, storage_state auth)\n  api/        API tests (pydantic-validated)\n  e2e/        UI journeys: auth, catalog, checkout\n  a11y/       axe scan + keyboard\ndata/         pydantic models + Faker factories\nutils/        config + API clients\ndocs/         test strategy \u0026 test plan\n```\n\n## Running locally\n\n```bash\npython -m venv .venv \u0026\u0026 source .venv/bin/activate\npip install -r requirements.txt\npython -m playwright install chromium\n\npytest -n auto                 # full suite, parallel\npytest -m smoke                # critical-path gate\npytest --headed tests/e2e      # watch the browser\n```\n\nConfiguration is environment-driven (`.env`, see `.env.example`) so the same suite runs against\nthe public demo or a local instance.\n\n## CI\n\nGitHub Actions runs **lint + the API suite** on every push and PR (one controlled retry, HTML report\nartifact), plus a nightly API regression. The UI e2e and accessibility suites are not on hosted CI:\nGitHub runners cannot reliably reach the public Toolshop SPA (the demo throttles datacenter IPs), so\nthey run locally and via a clean-clone check, with a containerized CI job as the documented next step\n(see the [test strategy](docs/test-strategy.md)). The same suite passes for anyone who clones and runs it.\n\n## Documentation\n\n- [Test strategy](docs/test-strategy.md)\n- [Test plan](docs/test-plan.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasprzakqa%2Fplaywright-pytest-toolshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasprzakqa%2Fplaywright-pytest-toolshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasprzakqa%2Fplaywright-pytest-toolshop/lists"}