From 1d99423da5318b44b12276cca031497ad673380e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Sat, 5 Sep 2026 22:25:06 +0800 Subject: [PATCH] =?UTF-8?q?task-269(admin.html=E8=A7=82=E6=84=9F=E5=AF=B9?= =?UTF-8?q?=E9=BD=90):=20e2e=20=E6=96=AD=E8=A8=80=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E7=8E=B0=E7=8A=B6(=E8=A7=92=E8=89=B2=E4=B8=AD=E6=96=87/?= =?UTF-8?q?=E4=BB=85=E5=8F=AF=E8=A7=81=E9=81=AE=E7=BD=A9=E5=88=A4=E5=AE=9A?= =?UTF-8?q?)+=E5=A3=B3=E5=B1=82=E6=8D=A2=E7=9A=AE=20smoke=20=E5=85=A8?= =?UTF-8?q?=E7=BB=BF(36/36)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-frontend-vue/e2e/13-shell.spec.ts | 2 +- admin-frontend-vue/e2e/task-20-shell-smoke.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin-frontend-vue/e2e/13-shell.spec.ts b/admin-frontend-vue/e2e/13-shell.spec.ts index 7bd6bfb7..c70cface 100644 --- a/admin-frontend-vue/e2e/13-shell.spec.ts +++ b/admin-frontend-vue/e2e/13-shell.spec.ts @@ -19,7 +19,7 @@ test('test_task_249_shell_light_normal_primary_path', async ({ page }) => { }) expect(vars.sidebar).toBe('#f8fbfe') expect(vars.primary).toBe('#4f78a5') - await expect(page.locator('.admin-user-role')).toHaveText('super_admin') + await expect(page.locator('.admin-user-role')).toHaveText('超级管理员') }) test('test_task_249_shell_light_normal_variant_input', async ({ page }) => { diff --git a/admin-frontend-vue/e2e/task-20-shell-smoke.spec.ts b/admin-frontend-vue/e2e/task-20-shell-smoke.spec.ts index 45440efc..4cac92f6 100644 --- a/admin-frontend-vue/e2e/task-20-shell-smoke.spec.ts +++ b/admin-frontend-vue/e2e/task-20-shell-smoke.spec.ts @@ -9,7 +9,7 @@ test('test_task_020_shell_browser_smoke_normal_primary_path', async ({ page }) = await openAdmin(page) await expect(page.getByRole('navigation', { name: '侧边栏菜单' })).toBeVisible() await expect(page.locator('.admin-user-meta strong')).toHaveText('admin') - await expect(page.locator('.admin-user-role')).toHaveText('super_admin') + await expect(page.locator('.admin-user-role')).toHaveText('超级管理员') await expect(page.getByText('账号权限', { exact: true }).first()).toBeVisible() }) @@ -66,10 +66,10 @@ test('test_task_020_shell_browser_smoke_invalid_input_rejected', async ({ page } test('test_task_020_shell_browser_smoke_dependency_failure_returns_actionable_message', async ({ page }) => { await openAdmin(page) - // 取消确认后无遗留弹层/遮罩;继续导航正常。 + // 取消确认后无“可见”的遮罩/弹层残留(隐藏的对话框 DOM 不算);继续导航正常。 await page.getByRole('button', { name: '退出登录' }).click() await page.locator('.el-message-box').getByRole('button', { name: '取消' }).click() - await expect(page.locator('.el-overlay')).toHaveCount(0) + await expect(page.locator('.el-overlay:visible')).toHaveCount(0) await page.locator('.admin-brand-copy, .admin-topbar h1').first().click({ force: true }) await expect(page.locator('.admin-topbar h1')).toHaveText('用户管理') })