You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/action/dist/index.js
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -41792,6 +41792,8 @@ function buildScriptGenerationPrompt(options) {
41792
41792
- The script must be self-contained and immediately runnable
41793
41793
- Total demo should be under ${options.maxDuration} seconds
41794
41794
- Do NOT test correctness \u2014 demonstrate the feature. Show it working, not edge cases.
41795
+
- Act as a real user: only interact through the UI using standard Playwright actions (navigate, click, type, hover). Never re-implement or simulate application features in the script.
41796
+
- Do NOT inject code into the page via \`page.evaluate\`, \`page.addInitScript\`, or inline \`<script>\` / \`<style>\` tags. The recording infrastructure handles visual overlays \u2014 the script should not.
41795
41797
- Always call \`await page.waitForLoadState('networkidle')\` after navigation
41796
41798
41797
41799
## Context
@@ -41906,6 +41908,12 @@ async function runScriptAndRecord(options) {
0 commit comments