ScuttleBot
scuttlebot
/
tests
/
e2e
/
node_modules
/
playwright
/
lib
/
agents
/
playwright-test-coverage.prompt.md
| f7eb47b… | lmata | 1 | --- |
| f7eb47b… | lmata | 2 | agent: ${defaultAgentName} |
| f7eb47b… | lmata | 3 | description: Produce test coverage |
| f7eb47b… | lmata | 4 | --- |
| f7eb47b… | lmata | 5 | |
| f7eb47b… | lmata | 6 | Parameters: |
| f7eb47b… | lmata | 7 | - Task: the task to perform |
| f7eb47b… | lmata | 8 | - Seed file (optional): the seed file to use, defaults to `${seedFile}` |
| f7eb47b… | lmata | 9 | - Test plan file (optional): the test plan file to write, under `specs/` folder. |
| f7eb47b… | lmata | 10 | |
| f7eb47b… | lmata | 11 | 1. Call #playwright-test-planner subagent with prompt: |
| f7eb47b… | lmata | 12 | |
| f7eb47b… | lmata | 13 | <plan> |
| f7eb47b… | lmata | 14 | <task-text><!-- the task --></task-text> |
| f7eb47b… | lmata | 15 | <seed-file><!-- path to seed file --></seed-file> |
| f7eb47b… | lmata | 16 | <plan-file><!-- path to test plan file to generate --></plan-file> |
| f7eb47b… | lmata | 17 | </plan> |
| f7eb47b… | lmata | 18 | |
| f7eb47b… | lmata | 19 | 2. For each test case from the test plan file (1.1, 1.2, ...), one after another, not in parallel, call #playwright-test-generator subagent with prompt: |
| f7eb47b… | lmata | 20 | |
| f7eb47b… | lmata | 21 | <generate> |
| f7eb47b… | lmata | 22 | <test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite> |
| f7eb47b… | lmata | 23 | <test-name><!-- Name of the test case without the ordinal like "should add two numbers" --></test-name> |
| f7eb47b… | lmata | 24 | <test-file><!-- Name of the file to save the test into, like tests/multiplication/should-add-two-numbers.spec.ts --></test-file> |
| f7eb47b… | lmata | 25 | <seed-file><!-- Seed file path from test plan --></seed-file> |
| f7eb47b… | lmata | 26 | <body><!-- Test case content including steps and expectations --></body> |
| f7eb47b… | lmata | 27 | </generate> |
| f7eb47b… | lmata | 28 | |
| f7eb47b… | lmata | 29 | 3. Call #playwright-test-healer subagent with prompt: |
| f7eb47b… | lmata | 30 | |
| f7eb47b… | lmata | 31 | <heal>Run all tests and fix the failing ones one after another.</heal> |