Add message links, suspect retries, and Discord preview recovery

This commit is contained in:
Fisto
2026-09-18 11:47:08 +02:00
parent 9481286169
commit 8752b36209
16 changed files with 831 additions and 35 deletions
+11
View File
@@ -206,6 +206,17 @@ try {
() => document.querySelector("#title-lane")?.textContent?.includes("Titles (YouTube)"),
{ timeout: 15000 }
);
check(
"recovery card renders",
(await page.locator("#recover-lane").textContent())?.includes("Recover Discord previews") === true
);
const withMessage = await page.evaluate(async () => {
const response = await fetch("/api/media?kind=video&limit=5");
const body = await response.json();
return (body.result ?? []).filter(item => item.messageUrl).length;
});
step("items with a message link", withMessage);
check("message links present", withMessage > 0, withMessage);
check("title lane card renders", (await page.locator("#title-lane .vk-bot-job-head").count()) === 1);
const summaryLines = await page.locator(".vk-bot-summary-line").count();