docs(arr): fleet consolidated on FrankBook-Pro, VPN egress proven; E2E counts derived from registry
This commit is contained in:
1 parent
4c7465d00d
commit
df4339a82a
5 files changed
+103
-76
No files matched your search
@@ -22,9 +22,14 @@ async function settleThroughGuard(page: Page, targetHost: string): Promise<void>
|
||||
|
||||
test("every user open link reaches its app", async ({ page }) => {
|
||||
test.setTimeout(420_000);
|
||||
await page.goto("/");
|
||||
await expect(page.locator("#grid a.open")).toHaveCount(9);
|
||||
// Expected link count comes from the live registry, mirroring the
|
||||
// showLink=true user entries — a registry edit cannot stale this test.
|
||||
const registry: { name: string; category: string; showLink: boolean }[] =
|
||||
await (await page.request.get("/services.json")).json();
|
||||
const expectedUserLinks = registry.filter((s) => s.category === "user" && s.showLink).length;
|
||||
|
||||
await page.goto("/");
|
||||
await expect(page.locator("#grid a.open")).toHaveCount(expectedUserLinks);
|
||||
const hrefs = await page
|
||||
.locator("#grid a.open")
|
||||
.evaluateAll((els) => els.map((el) => ({ href: (el as HTMLAnchorElement).href, label: el.textContent ?? "" })));
|
||||
@@ -43,7 +48,7 @@ test("every user open link reaches its app", async ({ page }) => {
|
||||
failures.push(`${link.label}: ${err instanceof Error ? err.message : String(err)}`);
|
||||
}
|
||||
await page.goto("/");
|
||||
await expect(page.locator("#grid a.open")).toHaveCount(9);
|
||||
await expect(page.locator("#grid a.open")).toHaveCount(expectedUserLinks);
|
||||
}
|
||||
expect(failures, failures.join("\n")).toEqual([]);
|
||||
});
|
||||
Reference in new issue
Block a user