@activate-core/test-forge 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/ai-generator.js +10 -3
- package/package.json +1 -1
|
@@ -121,9 +121,16 @@ export function buildPrompt(journey, map, testPath, focus, harnessPath) {
|
|
|
121
121
|
].join('\n')
|
|
122
122
|
: [
|
|
123
123
|
`Because this is a web journey, write Playwright tests that drive`,
|
|
124
|
-
`the UI.
|
|
125
|
-
`
|
|
126
|
-
`
|
|
124
|
+
`the UI. FIRST find the REAL selectors: with your read-only tools,`,
|
|
125
|
+
`locate and READ this page's actual React/Vue components (grep the`,
|
|
126
|
+
`webapp source for the route, page name, and on-screen text, then`,
|
|
127
|
+
`open those component files). Use the selectors that genuinely`,
|
|
128
|
+
`exist there — data-testid/data-cy, input name/id, aria-role,`,
|
|
129
|
+
`label text, or button text — via Playwright locators`,
|
|
130
|
+
`(getByRole/getByLabel/getByTestId/getByText). Only leave a`,
|
|
131
|
+
`"// TODO: confirm selector" when the element truly cannot be`,
|
|
132
|
+
`found in the component source; do NOT default everything to a`,
|
|
133
|
+
`TODO. Never invent a selector as if it were real.`,
|
|
127
134
|
`CRITICAL Playwright API: import { test, expect } from`,
|
|
128
135
|
`'@playwright/test'. There is NO test.todo / it.* / describe.skip`,
|
|
129
136
|
`in Playwright — using them throws at collection and breaks the`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activate-core/test-forge",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "AI-powered QA automation. Scans a project, drafts journey docs, and generates seeded Jest/Playwright tests. Works in any project, with any AI CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|