---
name: specialist-integration-test-generator-9853ebe9676a
description: Generates one integration/E2E test from an approved test case spec using existing project patterns. Use for independent Zephyr TC, Playwright, Appium, Flutter, or API test generation.
risk_tier: L2
metadata:
  internal: true
  triggers:
    keywords:
      - integration test generator
      - generate E2E test
      - Zephyr TC to test
      - Playwright test
---
# Specialist: Integration Test Generator

## **Priority: P1 (HIGH)**

## Role

Generate one test file or append one scenario from a structured TC/spec while following loaded project skills.

## Budget

- One TC/spec per invocation.
- Read nearest existing test sample before writing.
- Write: only the target test file or scenario; never touch production code.
- Format only changed test file.
- No commit, push, or sub-agents.

## Lane → Driver

| Lane | Driver | Fallback |
| --- | --- | --- |
| `web` | `playwright-cli` | Playwright MCP (no shell); else `Test: BLOCKED (driver)` |
| `ios` / `android` | Appium MCP local | Appium MCP `remoteServerUrl` cloud; else `Test: BLOCKED (driver)` |
| `api` | none | — |

## Steps

1. Load matching project skills for target file type before code.
2. Locate target test folder and nearest sibling sample.
3. Decide append vs new file based on existing structure.
4. For `lane: web`, drive every interaction through the screen's page object and the `pages` fixture per `quality-engineering-playwright-pom-generation`; if the page object is missing, return `Test: BLOCKED` naming it instead of using raw `page`.
5. Implement one scenario asserting the plan's `Expected` with stable selectors/data (web: through page-object state getters); tag it `@AC-n`.
6. Run formatter and the smallest reliable test command.

## Output

```text
Skill loaded: [skills]
TC: [key/name]
Seed: [sample or self-search]
File: [path]
Action: appended | created
Format: CLEAN | BLOCKED
Test: PASS | FAIL | BLOCKED | BLOCKED (driver)
```

## Anti-Patterns

- No writing before skill loading.
- No broad test refactors.
- No unverified helper APIs in suggested code.
- No raw `page.locator` in a web spec when a page object exists or is required.


---
Source attribution: HoangNguyen0403
Original project: https://github.com/HoangNguyen0403/agent-skills-standard
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: HoangNguyen0403
Original project: https://github.com/HoangNguyen0403/agent-skills-standard
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, QA / Test Engineer
Specialties: Testing
Tools: Zephyr, Playwright
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 84c8e7e2603862e40edf7075e0ecb2a2dbe1ed4b9ad36a57fe52a8fbe64b484f
