ScuttleBot

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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button