release: v0.7.0 — Tests pilotés par l'IA #4
Reference in New Issue
Block a user
Delete Branch "release/v0.7.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nouvelle fonctionnalité majeure : Tests pilotés par l'IA
L'IA Studio peut maintenant prendre le contrôle d'un onglet du navigateur de l'utilisateur pour tester les boutons et détecter les erreurs console.
Flow utilisateur
list_clickables,click, lireconsole, etc.Backend
internal/api/browser_test.go: WS endpoint, session store (16 max, LRU), agent tool/api/test/snippet,/api/test/sessions,/api/test/console/{id},/api/ws/browser-testbrowser_test(8 actions) — retourne leconsole_deltaaprès chaque clicFrontend
Studio
browser_test(summary → list → click → check delta → report)Sécurité
Versioning
Test plan
New feature: give Studio's AI control of any browser tab to test buttons, read the console, and report which buttons work / fail. Backend (internal/api/browser_test.go, ~480 LOC): - WebSocket endpoint /api/ws/browser-test, auth by single-use 5-min token - BrowserTestStore: session map (capped at 16, LRU evict), token store - REST: /api/test/snippet (issues token + JS snippet), /api/test/sessions, /api/test/console/{id} - Agent tool 'browser_test' wired into the registry, with actions: list_clickables / click / eval / console / current_url / type / wait / summary. click returns the console_delta produced during the click. - Embedded JS runner: opens WS, hooks console + window.onerror + unhandledrejection, dispatches dispatcher commands, replies with correlation IDs, watches for URL changes. Frontend: - New Tests tab (web/src/components/Tests.jsx): snippet copy + connected sessions list + live console viewer - App.jsx: 5th tab + Ctrl+4 shortcut (Config moves to Ctrl+5) - api/client.js: getTestSnippet / getTestSessions / getTestConsole Studio prompt: - internal/agent/prompts/studio_system.md: added browser_test entry to the tools table + <browser_test_strategy> section explaining the recommended loop (summary → list_clickables → click → check console_delta → report) Versioning: - v0.6.0 → v0.7.0 - CHANGELOG.md: full entry under v0.7.0