add better 403 screens and start with bun dev mode. (going to rewrite to fit the bun standard in a bit).

This commit is contained in:
KingKDot
2026-07-23 13:29:32 -05:00
parent 49bf1438a8
commit a68172538d
10 changed files with 487 additions and 22 deletions
+3 -1
View File
@@ -56,7 +56,9 @@ test.describe("authentication and authorization", () => {
const denied = await page.goto("/users");
expect(denied?.status()).toBe(403);
await expect(page.locator("body")).toContainText("missing permission users:manage");
await expect(page.getByRole("heading", { name: "You don't have access" })).toBeVisible();
await expect(page.locator(".access-detail")).toContainText("users:manage");
await expect(page.getByRole("link", { name: "Return to dashboard" })).toBeVisible();
const allowed = await page.goto("/metrics");
expect(allowed?.status()).toBe(200);