Add message links, suspect retries, and Discord preview recovery
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user