🔶 Show HN: Libretto PR 代理 – 自动修复失败的 Playwright 脚本
英文标题:🔶 Show HN: Libretto PR agents – Automatically fix failing playwright scripts
Libretto 可在 Playwright 自动化脚本失败时自动调查实时页面,并提交带代码修复的 GitHub PR。例如,它会将 `name="username"` 修正为 `name="login"`,并附带现场页面检查的确认信息。这能帮助开发者减少手动排查,提升 CI 中自动化测试的维护效率。
509.3 KB
中文
保留你已在运行的浏览器自动化任务。一旦失败,Libretto 会调查实时页面,并打开一个 GitHub 拉取请求,附上建议的代码修复。
OpenLibretto autofix for Playwright failure
libretto-agent wants to merge 1 commit into main
workflows/book-appointment.ts
- await page.locator('input[name="username"]').fill(login);
- await page.locator('input[name="login"]').fill(login);
The sign-in field is name="login", confirmed by inspecting the live page.
English / 原文
Keep the browser automations you already run. When one fails, Libretto investigates the live page and opens a GitHub pull request with a proposed code fix.
OpenLibretto autofix for Playwright failure
libretto-agent wants to merge 1 commit into main
workflows/book-appointment.ts
- await page.locator('input[name="username"]').fill(login);
+ await page.locator('input[name="login"]').fill(login);
The sign-in field is name="login", confirmed by inspecting the live page.