Add the Bot-tab backfill control room and media strip rules

This commit is contained in:
Fisto
2026-09-17 09:04:27 +02:00
parent 16ce809270
commit 6ae2ff5ab3
14 changed files with 949 additions and 85 deletions
+23
View File
@@ -126,6 +126,29 @@ try {
step("prompt after reset", resetPrompt);
check("reset returns the fresh view", resetPrompt);
// Bot tab: backfill progress, stats, and the three settings groups.
await page.click("#scope-bot");
await page.waitForSelector("#media-bot:not([hidden])", { timeout: 10000 });
await page.waitForFunction(
() => document.querySelector("#backfill-summary")?.textContent?.includes("pending"),
{ timeout: 20000 }
);
const summaryLines = await page.locator(".vk-bot-summary-line").count();
step("backfill summary lines", summaryLines);
check("backfill summary renders", summaryLines >= 3, summaryLines);
step("backfill totals", (await page.locator("#backfill-summary").textContent())?.trim().slice(0, 160));
step("backend split", (await page.locator(".vk-bot-summary-line.vk-dim").first().textContent())?.trim());
const groups = await page.locator("#bot-tunables details").count();
step("tunable groups", groups);
check("three tunable groups", groups === 3, groups);
const fields = await page.locator("#bot-tunables input").count();
step("tunable fields", fields);
check("tunable fields render", fields >= 12, fields);
check("start button visible", await page.locator("#backfill-start").isVisible());
step("console errors", results.consoleErrors.length);
check("no console errors", results.consoleErrors.length === 0, results.consoleErrors.slice(0, 3));