From 86c4df4c34dcd4cf2017ce19ad45ea72a0aed384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sat, 4 Apr 2026 07:46:42 +0800 Subject: [PATCH] fix: correct logout button selector in logout test --- novalon-manage-web/e2e/system-integration-test.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/novalon-manage-web/e2e/system-integration-test.spec.ts b/novalon-manage-web/e2e/system-integration-test.spec.ts index b561791..dc8af32 100644 --- a/novalon-manage-web/e2e/system-integration-test.spec.ts +++ b/novalon-manage-web/e2e/system-integration-test.spec.ts @@ -80,8 +80,9 @@ test.describe('系统全面集成测试', () => { await expect(page).toHaveURL(/\/(dashboard|\/)$/, { timeout: 10000 }); - await page.click('[data-testid="user-menu"]'); - await page.click('[data-testid="logout-button"]'); + await page.locator('.el-avatar').click(); + await page.waitForTimeout(500); + await page.locator('.el-dropdown-menu').getByText('退出登录').click(); await expect(page).toHaveURL(/.*login/, { timeout: 5000 }); });