mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-20 14:33:49 +00:00
- Drop orders routes, API, MSW, and e2e; users-only CRUD template - Port HTTP refresh, hooks, RouteError, and core e2e to basic - Lingui extract --clean in script; refresh catalogs - Update add-resource docs, cursor rule, and optimization spec Made-with: Cursor
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
import { loginAsGuest } from "./helpers";
|
|
|
|
test.describe("RBAC", () => {
|
|
test("guest without user:view cannot open /users", async ({ page }) => {
|
|
await loginAsGuest(page);
|
|
await page.goto("/users");
|
|
await expect(page).toHaveURL(/403/);
|
|
});
|
|
});
|