Harden production workflows and agent admission
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user