Smoke-check the ETA tooltips
This commit is contained in:
@@ -140,6 +140,13 @@ try {
|
|||||||
step("backfill totals", (await page.locator("#backfill-summary").textContent())?.trim().slice(0, 160));
|
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());
|
step("backend split", (await page.locator(".vk-bot-summary-line.vk-dim").first().textContent())?.trim());
|
||||||
|
|
||||||
|
const etaTitles = await page.locator(".vk-bot-eta").evaluateAll(nodes =>
|
||||||
|
nodes.map(node => node.getAttribute("title") ?? "")
|
||||||
|
);
|
||||||
|
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)));
|
||||||
|
|
||||||
const groups = await page.locator("#bot-tunables details").count();
|
const groups = await page.locator("#bot-tunables details").count();
|
||||||
step("tunable groups", groups);
|
step("tunable groups", groups);
|
||||||
check("three tunable groups", groups === 3, groups);
|
check("three tunable groups", groups === 3, groups);
|
||||||
|
|||||||
Reference in New Issue
Block a user