Neutral project-local agent harness.
npx claudepluginhub mahmoudelsharkawy/playwright-harnesspom-practiceNeutral project-local software agent working harness.
Ultra-compressed communication mode. Cut filler. Keep technical accuracy.
Forces the laziest solution that actually works.
Design or restructure processes, ideas, and folders into ICM workspaces (folder structure as agent architecture).
7-day visitors to each marketplace page
Playwright/TypeScript POM test automation for Automation Exercise (https://www.automationexercise.com), using harness 3.7.1. This README is the runbook: setup, how to run, the env flags the framework consumes, and where every report lands.
git clone https://github.com/MahmoudElSharkawy/Playwright-HarnessPOM-Practice.git
cd Playwright-HarnessPOM-Practice
npm ci # always via the lockfile — never per-package installs
npx playwright install --with-deps # browsers (first time / CI)
Use Node 24. Destinations — application URLs, database servers — live in
.harness/targets.json (read by src/config/targets.ts). Copy .env.example to .env
(gitignored) and fill in the secrets — credentials and DB passwords come only from
environment variables, loaded by dotenv in playwright.config.ts. Never commit a
literal credential.
npx playwright test # full run
npx playwright test tests/LoginTests.spec.ts # single spec
npx playwright test tests/RegistrationTests.spec.ts # registration spec
npx playwright test tests/CheckoutTests.spec.ts # checkout review spec
npx playwright test -g "TC116:" # filter by test case ID
npx playwright test --headed # watch the browser
npx playwright test --project=chromium # one browser project
The suites cover registration, login/logout, product search, category/brand browsing and checkout review, with 54 cases across five specs.
Consumed by the utils/ facades and the root lifecycle scripts
(global-setup.ts / src/utils/AllureReport.ts):
| Flag | Consumed by | Default | Effect |
|---|---|---|---|
AUTO_ALLURE_OPEN | src/utils/AllureReport.ts | on (opt-out) | Set to false to skip auto-opening the generated Allure report after the run. |
HARNESS_ALLURE_HISTORY | src/utils/AllureReport.ts and scoped harness commands | reports/allure-history | Select an older-HTML archive root under reports/, separate from current reports and raw results. |
ALLURE_ATTACH_VIDEO | src/utils/AllureReport.ts | off (opt-in) | Set to true to include videos in Allure. Explicit reporter attachVideo overrides this flag; Playwright recording is independent. |
API_CONSOLE_LOGS | utils/ApiActions.ts | off (opt-in) | Set to true to mirror every API request/response to the console (report attachments are always written). |
DB_CONSOLE_LOGS | utils/DBActions.ts | off (opt-in) | Set to true to mirror every SQL query/result to the console (report attachments are always written). |
PowerShell sets these as $env:AUTO_ALLURE_OPEN='false'; bash inline as
AUTO_ALLURE_OPEN=false npx playwright test.
CI runs must stay headless and non-interactive: set CI=true
(disables desktop behavior and enables retries/forbidOnly in the config),
AUTO_ALLURE_OPEN=false, and PW_TEST_HTML_REPORT_OPEN=never (suppresses the
HTML reporter's open: 'always' server), as the harness package's optional
CI templates demonstrate.
CI=true AUTO_ALLURE_OPEN=false PW_TEST_HTML_REPORT_OPEN=never npx playwright test --project=chromium
The workflow runs the full configured suite with
npm test on pull requests targeting main, pushes to main, and manual dispatch.
It installs Node 24, locked dependencies and Chromium on an Ubuntu runner.
The existing CI configuration uses one worker and two retries.
Every completed test run uploads the playwright-report folder artifact, including
its supporting screenshot/video/trace assets, and the current allure-report.html
file, retained for 30 days. The Allure file is copied from
reports/allure-report/index.html and uploaded with archive: false, preserving
the standalone download. Both uploads run after test failures, while the job keeps
the failed test outcome. A missing report fails its preparation/upload. Extract the
Playwright artifact and open index.html; open the Allure HTML directly. CI uploads
neither Allure history nor raw results. Allure uses its existing single-file
configuration and is generated after native reporters flush.
The current public QA target and disposable test accounts require no repository secrets.
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.