feat: 实现系统管理用户、角色与权限配置页面
补齐 RBAC 相关页面与 UI 设计图,并接入功能与视觉回归测试,便于后续持续验证。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
12
e2e/visual/system-permission.spec.ts
Normal file
12
e2e/visual/system-permission.spec.ts
Normal 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,
|
||||
});
|
||||
});
|
||||
12
e2e/visual/system-roles.spec.ts
Normal file
12
e2e/visual/system-roles.spec.ts
Normal 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,
|
||||
});
|
||||
});
|
||||
12
e2e/visual/system-users.spec.ts
Normal file
12
e2e/visual/system-users.spec.ts
Normal 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,
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user