feat: console ui, streaming report, history actions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
ee4a88e499
commit
a5529ce542
@@ -0,0 +1,13 @@
|
||||
import { chromium } from "@playwright/test";
|
||||
const ID = process.argv[2];
|
||||
const PORT = process.argv[3] ?? "3117";
|
||||
const b = await chromium.launch();
|
||||
const ctx = await b.newContext();
|
||||
await ctx.addCookies([{ name: "qai_s", value: "tokAPI", url: `http://localhost:${PORT}` }]);
|
||||
const page = await ctx.newPage();
|
||||
page.on("console", (m) => { if (m.type() === "error") console.log("QAI console", m.text().slice(0, 400)); });
|
||||
page.on("pageerror", (e) => console.log("QAI pageerror", String(e).slice(0, 500)));
|
||||
await page.goto(`http://localhost:${PORT}/app/${ID}`, { waitUntil: "load" });
|
||||
await page.waitForTimeout(6000);
|
||||
console.log("QAI report count", await page.locator("#report").count());
|
||||
await b.close();
|
||||
Reference in New Issue
Block a user