diff --git a/frontend/e2e/system-update.e2e.ts b/frontend/e2e/system-update.e2e.ts index cd7f758..16e08af 100644 --- a/frontend/e2e/system-update.e2e.ts +++ b/frontend/e2e/system-update.e2e.ts @@ -178,6 +178,16 @@ test('system administrator checks and queues a signed online update', async ({ p expect(installBodies).toEqual([{ version: '1.0.0-preview.2', reason: '管理员确认立即重启' }]); }); +test('brand logo returns the active identity to its workbench', async ({ page }) => { + await installFixture(page, [], []); + await page.goto('/governance/update'); + + await page.locator('.brand-logo').click(); + + await expect(page).toHaveURL(/\/governance\/settings$/); + await expect(page.getByText('选择工作身份', { exact: true })).toHaveCount(0); +}); + test('disabled online updates expose status without an executable check action', async ({ page }) => { await installFixture(page, [], [], false); await page.goto('/governance/update'); diff --git a/frontend/src/layouts/components/Header.vue b/frontend/src/layouts/components/Header.vue index cf41aae..d040c44 100644 --- a/frontend/src/layouts/components/Header.vue +++ b/frontend/src/layouts/components/Header.vue @@ -2,7 +2,7 @@