diff --git a/packages/core/src/generator/prompts.ts b/packages/core/src/generator/prompts.ts index 182075c..bd6a233 100644 --- a/packages/core/src/generator/prompts.ts +++ b/packages/core/src/generator/prompts.ts @@ -24,7 +24,6 @@ export function buildScriptGenerationPrompt(options: ScriptPromptOptions): strin ## Rules - Navigate to the affected pages - Interact with new/changed UI elements (click buttons, fill forms, hover states) -- Add \`await page.waitForTimeout(1500)\` pauses on key visual states so the recording captures them clearly - Use resilient selectors in priority order: text content > ARIA roles > test IDs > CSS classes - The script must be self-contained and immediately runnable - Total demo should be under ${options.maxDuration} seconds @@ -33,6 +32,16 @@ export function buildScriptGenerationPrompt(options: ScriptPromptOptions): strin - Do NOT inject code into the page via \`page.evaluate\`, \`page.addInitScript\`, or inline \`