feat: 实现系统管理用户、角色与权限配置页面

补齐 RBAC 相关页面与 UI 设计图,并接入功能与视觉回归测试,便于后续持续验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 03:08:35 +08:00
parent c4872891f8
commit 77f718965d
24 changed files with 1869 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
import { expect, test } from '../fixtures/auth';
test('权限配置视觉基线', async ({ page }) => {
await page.setViewportSize({ width: 1440, height: 900 });
await page.goto('/system/permission');
await page.getByText('菜单树', { exact: true }).waitFor();
await page.evaluate(() => document.fonts.ready);
await expect(page).toHaveScreenshot('system-permission.png', {
fullPage: true,
});
});

View File

@@ -0,0 +1,12 @@
import { expect, test } from '../fixtures/auth';
test('角色管理视觉基线', async ({ page }) => {
await page.setViewportSize({ width: 1440, height: 900 });
await page.goto('/system/role');
await page.getByRole('table').waitFor();
await page.evaluate(() => document.fonts.ready);
await expect(page).toHaveScreenshot('system-roles-list.png', {
fullPage: true,
});
});

View File

@@ -0,0 +1,12 @@
import { expect, test } from '../fixtures/auth';
test('用户管理视觉基线', async ({ page }) => {
await page.setViewportSize({ width: 1440, height: 900 });
await page.goto('/system/user');
await page.getByRole('table').waitFor();
await page.evaluate(() => document.fonts.ready);
await expect(page).toHaveScreenshot('system-users-list.png', {
fullPage: true,
});
});