Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Prompt file imported from sagarvarulegit/cbse_byCodex_archive (.codex/prompts/playwright-test-coverage.md). Copyright stays with the author.
Parameters:
Task: the task to perform
Seed file (optional): the seed file to use, defaults to apps\web\e2e\seed.spec.ts
Test plan file (optional): the test plan file to write, under specs/ folder.
Call #playwright-test-planner subagent with prompt:
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:
Call #playwright-test-healer subagent with prompt:
Run all tests and fix the failing ones one after another.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Parameters:
- Task: the task to perform
- Seed file (optional): the seed file to use, defaults to `apps\web\e2e\seed.spec.ts`
- Test plan file (optional): the test plan file to write, under `specs/` folder.
1. Call #playwright-test-planner subagent with prompt:
<plan>
<task-text><!-- the task --></task-text>
<seed-file><!-- path to seed file --></seed-file>
<plan-file><!-- path to test plan file to generate --></plan-file>
</plan>
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:
<generate>
<test-suite><!-- Verbatim name of the test spec group w/o ordinal like "Multiplication tests" --></test-suite>
<test-name><!-- Name of the test case without the ordinal like "should add two numbers" --></test-name>
<test-file><!-- Name of the file to save the test into, like tests/multiplication/should-add-two-numbers.spec.ts --></test-file>
<seed-file><!-- Seed file path from test plan --></seed-file>
<body><!-- Test case content including steps and expectations --></body>
</generate>
3. Call #playwright-test-healer subagent with prompt:
<heal>Run all tests and fix the failing ones one after another.</heal>
Installed into a catalogue, chosen by a router
Install playwright-test-coverage and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
{
"prompt": "Parameters:\n- Task: the task to perform\n- Seed file (optional): the seed file to use, defaults to `apps\\web\\e2e\\seed.spec.ts`\n- Test plan file (optional): the test plan file to write, under `specs/` folder.\n\n1. Call #playwright-test-planner subagent with prompt:\n\n<plan>\n <task-text><!-- the task --></task-text>\n <seed-file><!-- path to seed file --></seed-file>\n <plan-file><!-- path to test plan file to generate --></plan-file>\n</plan>\n\n2. 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:\n\n<generate>\n <test-suite><!-- Verbatim name of the test spec group w/o ordinal like \"Multiplication tests\" --></test-suite>\n <test-name><!-- Name of the test case without the ordinal like \"should add two numbers\" --></test-name>\n <test-file><!-- Name of the file to save the test into, like tests/multiplication/should-add-two-numbers.spec.ts --></test-file>\n <seed-file><!-- Seed file path from test plan --></seed-file>\n <body><!-- Test case content including steps and expectations --></body>\n</generate>\n\n3. Call #playwright-test-healer subagent with prompt:\n\n<heal>Run all tests and fix the failing ones one after another.</heal>",
"variables": [],
"notes": "Produce test coverage",
"metadata": {
"source": {
"provider": "github-codex-prompts",
"repository": "https://github.com/sagarvarulegit/cbse_byCodex_archive",
"path": ".codex/prompts/playwright-test-coverage.md",
"ref": "9029f5c2b32dfc5fa23a664cc0dcf09dfc3a245f",
"url": "https://github.com/sagarvarulegit/cbse_byCodex_archive/blob/9029f5c2b32dfc5fa23a664cc0dcf09dfc3a245f/.codex/prompts/playwright-test-coverage.md",
"key": "sagarvarulegit/cbse_byCodex_archive/.codex/prompts/playwright-test-coverage.md"
}
}
}
Fetch it by URL: GET /api/v1/registry/sagarvarulegit-cbse-bycodex-archive-playwright-test-cove-9dc918/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.