Harden production workflows and agent admission

This commit is contained in:
Stanislav Rossovskii
2026-05-28 14:19:27 +04:00
parent a2e88b4e76
commit 37b1a1d6d6
109 changed files with 4927 additions and 894 deletions

View File

@@ -1,10 +1,12 @@
import { expect, test } from "@playwright/test";
test("overview renders tallies", async ({ page }) => {
test("root redirects to agents with nav counters", async ({ page }) => {
await page.goto("/");
await expect(page.getByRole("heading", { name: "Overview" })).toBeVisible();
await expect(page.locator("body")).toContainText("Agents");
await expect(page.locator("body")).toContainText("Checks");
await expect(page).toHaveURL(/\/agents$/);
await expect(page.getByRole("heading", { name: "Agents" })).toBeVisible();
await expect(page.getByRole("link", { name: /Agents.*1.*1/ })).toBeVisible();
await expect(page.getByRole("link", { name: /Checks.*2.*1.*1/ })).toBeVisible();
await expect(page.getByRole("link", { name: /Incidents.*2/ })).toBeVisible();
});
test("agents list links to detail", async ({ page }) => {