- Home
- Skills
- Testing & Debugging
- QA Playwright Automation Builder: TypeScript POM Framework
More screenshots
Works with the AI Agents you already use
QA Playwright Automation Builder: TypeScript POM Framework
Expected results resting on an unconfirmed assumption (`ASM-xxx`) get an `assumption` annotation; ones the PO has answered follow the answer or come back to you.
$9.99
QA Playwright Automation Builder: TypeScript POM Framework
Example session with this skill installed
Set up a Playwright automation framework for DemoShop and turn all test cases of this manual run into Playwright tests. Run folder: run-trace-en/. Create the project in demoshop-automation/. Site: http://127.0.0.1:8765/demoshop-site/ (already running). Go ahead with all sections in one go; you cannot ask me questions, so make the reasonable choice the skill tells you to and note it. (Test account given separately, kept only in .env.)
- Read your context and instructions
- Compiled the qa playwright automation
- Generated the UI component
Plan first (read_cases.py on the run folder), then the project, the code, a trial run on the test site and the convention check. Excerpts of the real files:
1. Automation plan (read_cases.py)
I. Apply gift card
| Case | Objective | Status | Plan | Bug / tracker | Note |
|---|---|---|---|---|---|
| TC1 | [EP] Verify a valid gift card with balance lower than the total is applied | Pass | write | ||
| TC2 | [EP] Verify the code is accepted in lowercase (case-insensitive) | Fail | write-bug | 2026-11-29_16-25-48-lowercase-code-not-found.md (not posted) | lowercase valid code rejected (GC-01 case-insensitive); wro… |
| TC3 | [DT] Verify an expired gift card is rejected | Fail | write-bug | 2026-11-29_16-25-49-expired-card-applied.md (not posted) | expired card accepted instead of "This gift card has expire… |
| TC4 | [EP] Verify an unknown code is rejected | Pass | write | wrong-code count: 2 of 5 after this case | |
| TC5 | [BVA] Verify a card with balance above the total makes the total $0.00 | Pass | write | ASM-009 not exercised by the case: do not assert it | |
| TC6 | [EP] [ASSUMPTION] Verify a valid code pasted with leading and trailing spaces is applied … | Pass | write | relies on ASM-014 (unconfirmed): add an 'assumption' annotation |
II. Multiple gift cards
| Case | Objective | Status | Plan | Bug / tracker | Note |
|---|---|---|---|---|---|
| TC7 | [UC] Verify two gift cards can be applied to one order | Pass | write | ||
| TC8 | [BVA] Verify a third gift card is not applied (max 2 per order) | Fail | write-bug | 2026-11-29_16-27-18-third-gift-card-applied.md (not posted) | third gift card applied (GC-05: max 2 per order); message w… |
| TC9 | [ST] Verify removing an applied gift card restores the total | Pass | write | ||
| TC10 | [EP] Verify a gift card cannot be combined with a voucher code | Deprecated | skip | Deprecated: vouchers removed in spec v2 |
Totals: skip 1, write 6, write-bug 3
Cases relying on an assumption: TC6 (ASM-014 unconfirmed)
Not automated (skip): TC10 (Deprecated: vouchers removed in spec v2)
2. Project created
demoshop-automation/
.env.example
.github/workflows/playwright.yml
.gitignore
AGENTS.md
README.md
package-lock.json
package.json
playwright.config.ts
project-documentations/01-website-feature.md
project-documentations/02-folder-design.md
project-documentations/03-pom-design.md
project-documentations/04-utils-design.md
project-documentations/05-fixture-design.md
project-documentations/06-coding-convention-design.md
src/data/checkout-gift-card-applied.json
src/data/checkout-gift-card-rejected.json
src/data/checkout-seeded.json
src/fixtures/shop-fixture.ts
src/pages/base.page.ts
src/pages/login/login.page.ts
src/pages/shop/checkout/checkout.page.ts
src/pages/shop/shop.base.page.ts
src/utils/random-data.util.ts
tests/login/login.spec.ts
tests/shop/checkout/checkout.spec.ts
tsconfig.json
3. Data-driven cases: src/data/checkout-gift-card-applied.json
[
{ "id": "GC_TC1", "type": "EP", "name": "Verify a valid gift card with balance lower than the total is applied", "code": "AAAA-BBBB-CCCC-1234", "last4": "1234", "lineAmount": "−$25.00", "total": "$35.00", "case": "GC-APPLY-001 · REQ-001 · R-003", "bug": "", "assumption": "" },
{ "id": "GC_TC2", "type": "EP", "name": "Verify the code is accepted in lowercase (case-insensitive)", "code": "aaaa-bbbb-cccc-1234", "last4": "1234", "lineAmount": "−$25.00", "total": "$35.00", "case": "GC-APPLY-002 · REQ-001 · R-003, BUG-005", "bug": "2026-11-29_16-25-48-lowercase-code-not-found.md · not posted", "assumption": "" },
{ "id": "GC_TC5", "type": "BVA", "name": "Verify a card with balance above the total makes the total $0.00", "code": "DDDD-EEEE-FFFF-5678", "last4": "5678", "lineAmount": "−$60.00", "total": "$0.00", "case": "GC-APPLY-005 · REQ-004 · R-003", "bug": "", "assumption": "" },
{ "id": "GC_TC6", "type": "EP", "name": "Verify a valid code pasted with leading and trailing spaces is applied (ASM-014: spaces are trimmed)", "code": " GGGG-HHHH-IIII-9012 ", "last4": "9012", "lineAmount": "−$10.00", "total": "$50.00", "case": "GC-APPLY-006 · REQ-001 · R-010", "bug": "", "assumption": "ASM-014 (unconfirmed): spaces are trimmed" }
]
4. A known bug as a test: tests/shop/checkout/checkout.spec.ts (TC8)
test('@GC_TC8:[BVA] Verify a third gift card is not applied (max 2 per order)', {
tag: '@bug',
annotation: [
{ type: 'case', description: 'GC-MULTI-002 · REQ-005 · R-003, BUG-011' },
{ type: 'bug', description: '2026-11-29_16-27-18-third-gift-card-applied.md · not posted' },
],
}, async () => {
await test.step('Precondition: apply two gift cards (Order total $25.00)', async () => {
await checkoutPage.applyGiftCard(card25.code);
await expect(checkoutPage.giftCardLine(card25.last4)).toBeVisible();
await checkoutPage.applyGiftCard(card10.code);
await expect(checkoutPage.orderTotalLoc).toHaveText('$25.00');
});
await test.step('Enter the third code and click "Apply"', async () => {
await checkoutPage.applyGiftCard(card100.code);
});
await test.step('The third card is not applied and Order total stays $25.00', async () => {
// Decision TC8 (run folder test-config.md): the message text is not defined in the spec, so only
// "not applied, total stays $25.00" is asserted, not the wording of a message.
await expect(checkoutPage.giftCardLine(card100.last4)).toHaveCount(0);
await expect(checkoutPage.giftCardLinesLoc).toHaveCount(2);
await expect(checkoutPage.orderTotalLoc).toHaveText('$25.00');
});
});
5. Trial run on the test site
$ npx playwright test --project=chromium --reporter=list
Running 9 tests using 1 worker
ok 1 [chromium] › tests\shop\checkout\checkout.spec.ts:24:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC1:[EP] Verify a valid gift card with balance lower than the total is applied (949ms)
x 2 [chromium] › tests\shop\checkout\checkout.spec.ts:24:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC2:[EP] Verify the code is accepted in lowercase (case-insensitive) @bug (5.6s)
ok 3 [chromium] › tests\shop\checkout\checkout.spec.ts:24:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC5:[BVA] Verify a card with balance above the total makes the total $0.00 (579ms)
ok 4 [chromium] › tests\shop\checkout\checkout.spec.ts:24:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC6:[EP] Verify a valid code pasted with leading and trailing spaces is applied (ASM-014: spaces are trimmed) (431ms)
x 5 [chromium] › tests\shop\checkout\checkout.spec.ts:44:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC3:[DT] Verify an expired gift card is rejected @bug (5.6s)
ok 6 [chromium] › tests\shop\checkout\checkout.spec.ts:44:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC4:[EP] Verify an unknown code is rejected (624ms)
ok 7 [chromium] › tests\shop\checkout\checkout.spec.ts:67:13 › GC - Gift card at checkout › II. Multiple gift cards › @GC_TC7:[UC] Verify two gift cards can be applied to one order (518ms)
x 8 [chromium] › tests\shop\checkout\checkout.spec.ts:85:13 › GC - Gift card at checkout › II. Multiple gift cards › @GC_TC8:[BVA] Verify a third gift card is not applied (max 2 per order) @bug (5.8s)
ok 9 [chromium] › tests\shop\checkout\checkout.spec.ts:110:13 › GC - Gift card at checkout › II. Multiple gift cards › @GC_TC9:[ST] Verify removing an applied gift card restores the total (661ms)
1) [chromium] › tests\shop\checkout\checkout.spec.ts:24:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC2:[EP] Verify the code is accepted in lowercase (case-insensitive) @bug › Gift card line 1234 shows −$25.00 and Order total shows $35.00
2) [chromium] › tests\shop\checkout\checkout.spec.ts:44:17 › GC - Gift card at checkout › I. Apply gift card › @GC_TC3:[DT] Verify an expired gift card is rejected @bug › Message "This gift card has expired." is shown and Order total stays $60.00
3) [chromium] › tests\shop\checkout\checkout.spec.ts:85:13 › GC - Gift card at checkout › II. Multiple gift cards › @GC_TC8:[BVA] Verify a third gift card is not applied (max 2 per order) @bug › The third card is not applied and Order total stays $25.00
(error details omitted)
3 failed
6 passed (27.1s)
$ npm run test:no-bug
6 passed (4.1s)
6. Convention check
$ python check_framework.py . --strict
Specs: 2 · page objects: 4 · data files: 3
Result: PASS (0 error(s), 0 warning(s))
README: Coverage
Written from the manual run run-trace-en (sheet gift-card-trace_result.xlsx, 2026-11-29), code prefix GC, spec tests/shop/checkout/checkout.spec.ts.
| Module / section | Tests | Notes |
|---|---|---|
| Checkout · I. Apply gift card | GC_TC1, GC_TC2, GC_TC3, GC_TC4, GC_TC5, GC_TC6 | GC_TC2 @bug (lowercase code rejected), GC_TC3 @bug (expired card applied); GC_TC6 relies on ASM-014 (unconfirmed: spaces are trimmed); GC_TC2 and GC_TC4 each send one wrong code (lockout GC-06: 5 per 10 min) |
| Checkout · II. Multiple gift cards | GC_TC7, GC_TC8, GC_TC9 | GC_TC8 @bug (third gift card applied; message wording not asserted, decision TC8) |
| Not automated | TC10 | Deprecated: vouchers removed in spec v2 |
Lockout GC-06: one full run sends 2 wrong codes; do not run the full suite more than twice within 10 minutes (retries: 0, workers: 1, chromium only, see document 06 §7).
gift-card-trace_result.xlsx
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Your manual tests already say what to check; turning them into automation usually means a week of setting up folders, base pages and CI, and a suite that drifts into a different style per author. Playwright Automation Builder builds the project on one fixed, documented framework and writes the tests from the cases you already have.
What it does
- Plans every case with a script before writing code:
read_cases.pyreads your Excel sheet (.xlsx, English or Vietnamese headers) or a run folder and decides per case: Pass → a test; Fail with an open bug → a test asserting the expected result, tagged@bugand linked to its bug file or Bug ID; bug fixed → a plain regression test; bug accepted → a test of the current behavior; bug cancelled or withdrawn → it asks you; pending with an observed result → a test of the current behavior marked "pending confirmation"; Blocked / Deprecated / not applicable → skipped with the reason. Expected results resting on an unconfirmed assumption (ASM-xxx) get anassumptionannotation; ones the PO has answered follow the answer or come back to you. - A sheet with no results yet: every case is written from its steps and expected result; a test that then fails is reported to you as a possible bug or wrong expectation (not tagged
@bugon its own), and the main CI step stays red until you decide. - Scaffolds the project: Playwright + TypeScript,
BasePagewithfillSecret(), path aliases,.env.example, npm scripts (test:no-bug,typecheck), README, AGENTS.md and a GitHub Actions workflow that runs known bugs in a separate step so they do not turn the pipeline red. - Writes the code on one framework: page objects mirrored 1-to-1 by spec files, locators only in page objects, fixtures for prepared states (e.g. logged in), pure utils, JSON data-driven tests when cases differ only by data,
test.stepper logical step, test names@<CODE>_TC<no>:[<Type>] <objective>straight from the sheet. - Writes 6 design documents (website notes and pitfalls, folders, POM design, utils, fixtures, coding conventions) and a README Coverage table: which case became which test, and what was not automated and why.
- Checks the result with a script:
check_framework.pyverifies the conventions (mirror, locators,readonly, aliases, names, nowaitForTimeout, secrets typed withfill(), trace snapshots, data files, documents) and, with--scan-secrets, searches reports and traces for the values in your.env(prints names only). - Runs the suite on your test environment and reports each test against its case: passed, failed as expected (
@bug), skipped, with the reason.
Built for real test environments
- Secrets stay out: account values only in your git-ignored
.env, passwords typed withfillSecret()so they do not appear in the HTML report or the trace (the trace is kept without DOM snapshots, and a scan checks the output of every trial run). - Rate limits and lockouts: when the run notes a lockout, it counts the attempts, sets retries 0 and 1 worker, runs Chromium only, and keeps the tests that use attempts out of the push pipeline when consecutive runs could reach the limit.
- No copied locators: every locator and message comes from the real page (a verified run, Playwright MCP, or a test run that confirms locators written from the case text and screenshots) or from you, never from the skill's examples.
- Extends, never rewrites: in an existing project built on this framework it keeps your language, prefixes and folder names, adds pages and tests next to working code, updates the README and documents, and does not rewrite tests you did not ask about.
Demo numbers (DemoShop gift card checkout, 3 planted bugs)
- From a manual run of 10 cases, the plan was: 6 tests, 3
@bugtests (each linked to its bug file), 1 skipped (Deprecated), and 1 assumption flagged. - The project has 2 page objects on 2 base pages, a login fixture, 3 JSON data files, 1 spec with the 9 tests (plus an empty login spec), 6 design documents and CI.
- Trial run on the test site: 6 passed, and 3 failed as
@bugtests, which are exactly the 3 planted bugs.npm run test:no-bugpassed all 6. check_framework.py --strictpassed with 0 errors and 0 warnings.
Works with a test runner (optional)
It reads the run folder written by an AI test runner such as QA Playwright Test Runner (available separately): the result workbook, test-config.md (base URL, account variable names, rate limits, decisions) and the bug index, so each Fail becomes a @bug test linked to its bug file. A plain test case sheet, a list of cases in the chat, or a screen URL works too.
Use cases
- Turning a manual regression sheet into a Playwright suite
- Automating the cases of a finished test run, with known bugs kept as
@bugtests - Setting up a Playwright + TypeScript framework the whole team follows
- Adding page objects and tests to an existing project built on this framework
- Getting a CI pipeline that stays green while known bugs wait for a fix
Output
A project folder named after your product (e.g. demoshop-automation/) with src/pages, tests, src/fixtures, src/data, src/utils, project-documentations/ (6 files), playwright.config.ts, tsconfig.json, .github/workflows/, README and AGENTS.md. With a run folder, it also records what was automated under ## Automation in its test-config.md, and adds rows to its test-data-log.csv when a trial run creates real data (only with your consent).
Requirements
Node.js 20.19+, 22.13+, 23.5+ or 24+ and npm; Python 3.8+ with openpyxl for sheets (the agent asks before installing it; without Python it follows the same rules by hand, without the checker); a test environment URL (not production). Playwright MCP is optional, used to explore locators. npm install downloads packages; installing the browser downloads Chromium unless one is already installed.
Save with the bundle
Buying the whole chain? The QA/QC Test Execution to Automation bundle has the test runner, the report and this automation builder for $16.99 instead of $21.98 (bundles are bought on the website). You own each skill separately.
Language
Written in English; the reply, README, design documents, code comments and step titles are in English or Vietnamese, matching your request (an existing project keeps its language). Identifiers, file names, tags and status values stay in English.
License
For your personal use under the Agensi license; please do not redistribute or resell.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
- It builds on one fixed framework (Playwright + TypeScript, page objects, GitHub Actions CI); it does not adapt to another language or test runner. In an existing project with a different layout it lists what differs and adds missing parts only when you agree.
- It does not design test cases or run them by hand; it automates the cases you give it.
- It needs a test environment URL and, for screens behind a login, the names of the account variables; without them it asks and stops. You fill the values in .env.
- Locators come from the real page: without a verified run or Playwright MCP, it writes them from the case text and screenshots and confirms them with a first test run.
- Fail cases with an open bug become @bug tests that fail until the fix; cases pending with no observed result, Blocked and Deprecated cases are skipped with the reason.
- Tests that create data that cannot be deleted run for real only with your consent; otherwise in mock mode.
- Node.js 20.19+ (or 22.13+, 23.5+, 24+) is required; npm install and the browser install need internet access (a version pin is supported when only an older installed browser can be used).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Node.js 20.19+
Python 3.8+openpyxlPlaywright
Git
Permissions
File Scopes
Terminal: runs the 3 bundled scripts (scaffold, read cases, check framework), npm install, npm run typecheck and Playwright test runs. Network: npm install downloads packages, npx playwright install may download Chromium, and the tests open only the test environment URL you give (never production unless you ask and confirm). Browser: optional Playwright MCP to explore locators. Read Files: your test case workbook or run folder. Write Files: the automation project, the ## Automation section of the run folder's test-config.md, and rows in its test-data-log.csv when real data is created with your consent. Environment Variables: writes the project .env (BASE_URL filled, other variables empty); check_framework.py --scan-secrets reads the .env secret values locally to search the test output and prints names only; on your request it copies values into .env from a file you point to, without printing them. Account values never go into code, docs or chat. The scripts make no network calls; if openpyxl is missing, the agent asks before running pip install.