fix: 修复系统管理审查发现的权限一致性与数据同步问题

统一角色与权限配置的标识体系,并修正菜单树勾选、菜单级联清理与用户备注持久化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 03:27:23 +08:00
parent 77f718965d
commit 8a03781577
8 changed files with 74 additions and 60 deletions

View File

@@ -51,9 +51,14 @@ test.describe('系统管理 / 用户管理', () => {
await operatorRow.getByRole('button', { name: '编辑' }).click();
const dialog = page.getByRole('dialog', { name: '编辑用户' });
await dialog.getByLabel('昵称').fill('新运营');
await dialog.getByLabel('备注').fill('负责日常运营');
await dialog.getByRole('button', { name: '保 存' }).click();
await expect(page.getByText('新运营', { exact: true })).toBeVisible();
await operatorRow.getByRole('button', { name: '编辑' }).click();
await expect(page.getByRole('dialog', { name: '编辑用户' }).getByLabel('备注')).toHaveValue('负责日常运营');
await page.getByRole('dialog', { name: '编辑用户' }).getByRole('button', { name: '取 消' }).click();
const viewerRow = page.getByRole('row').filter({ hasText: 'viewer' });
await viewerRow.getByRole('button', { name: '删除' }).click();
await page.getByRole('button', { name: '确 定' }).click();