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
return `You are a Playwright script generator. Generate a TypeScript Playwright script that records a general overview demo of a web app \u2014 as if showing it to someone for the first time.
65401
+
65402
+
## Goal
65403
+
Produce a short, visually engaging tour that demonstrates the app is running and shows its main UI. This is a setup-validation demo, not a feature showcase.
65404
+
65405
+
## Rules
65406
+
- Navigate to the home page and 1-2 other meaningful routes if they exist
65407
+
- Scroll gently to reveal content, hover over key UI elements
65408
+
- Do NOT test anything \u2014 just demonstrate that the app loads and looks reasonable
65409
+
- Use resilient selectors: text content > ARIA roles > CSS classes
65410
+
- Act as a real user: only interact through the UI. Never re-implement app features in the script.
65411
+
- Do NOT inject code via \`page.evaluate\`, \`page.addInitScript\`, or inline scripts/styles
65412
+
- Always call \`await page.waitForLoadState('networkidle')\` after navigation
65413
+
65414
+
## Timing
65415
+
- Total demo under ${options.maxDuration} seconds
65416
+
- Use \`await page.waitForTimeout(400)\` between actions \u2014 keep it brisk
65417
+
65418
+
## Mouse movement
65419
+
- Move naturally before clicks: one intermediate \`page.mouse.move(x, y)\` waypoint is enough
65420
+
- Use plausible coordinates within the ${options.viewport.width}x${options.viewport.height} viewport
return`You are a Playwright script generator. Generate a TypeScript Playwright script that records a general overview demo of a web app — as if showing it to someone for the first time.
69
+
70
+
## Goal
71
+
Produce a short, visually engaging tour that demonstrates the app is running and shows its main UI. This is a setup-validation demo, not a feature showcase.
72
+
73
+
## Rules
74
+
- Navigate to the home page and 1-2 other meaningful routes if they exist
75
+
- Scroll gently to reveal content, hover over key UI elements
76
+
- Do NOT test anything — just demonstrate that the app loads and looks reasonable
77
+
- Use resilient selectors: text content > ARIA roles > CSS classes
78
+
- Act as a real user: only interact through the UI. Never re-implement app features in the script.
79
+
- Do NOT inject code via \`page.evaluate\`, \`page.addInitScript\`, or inline scripts/styles
80
+
- Always call \`await page.waitForLoadState('networkidle')\` after navigation
81
+
82
+
## Timing
83
+
- Total demo under ${options.maxDuration} seconds
84
+
- Use \`await page.waitForTimeout(400)\` between actions — keep it brisk
85
+
86
+
## Mouse movement
87
+
- Move naturally before clicks: one intermediate \`page.mouse.move(x, y)\` waypoint is enough
88
+
- Use plausible coordinates within the ${options.viewport.width}x${options.viewport.height} viewport
0 commit comments