Adapt the smoke test to the empty backfill and recovery card
This commit is contained in:
@@ -206,10 +206,11 @@ 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
|
||||
await page.waitForFunction(
|
||||
() => document.querySelector("#recover-lane")?.textContent?.includes("Recover Discord previews"),
|
||||
{ timeout: 15000 }
|
||||
);
|
||||
check("recovery card renders", true);
|
||||
const withMessage = await page.evaluate(async () => {
|
||||
const response = await fetch("/api/media?kind=video&limit=5");
|
||||
const body = await response.json();
|
||||
@@ -230,7 +231,11 @@ try {
|
||||
);
|
||||
step("eta tooltips", etaTitles);
|
||||
check("queue eta tooltip", etaTitles.some(title => title.includes("queue drains in")));
|
||||
check("job eta tooltip", etaTitles.some(title => /starts in .* runs for/.test(title)));
|
||||
if ((await page.locator(".vk-bot-job").count()) === 0) {
|
||||
step("job eta tooltip", "no pending jobs");
|
||||
} else {
|
||||
check("job eta tooltip", etaTitles.some(title => /starts in .* runs for/.test(title)));
|
||||
}
|
||||
|
||||
const groups = await page.locator("#bot-tunables details").count();
|
||||
step("tunable groups", groups);
|
||||
|
||||
Reference in New Issue
Block a user