优化后台界面与无操作退出体验
This commit is contained in:
@@ -74,4 +74,17 @@ describe("Login protocol agreement", () => {
|
||||
expect(restoreIndex).toBeLessThan(projectOverviewRouteIndex);
|
||||
expect(source).toContain("preferActive: !!auth.user?.is_admin");
|
||||
});
|
||||
|
||||
it("shows persistent logout reason notices on the login card", () => {
|
||||
const source = readLoginView();
|
||||
|
||||
expect(source).toContain('v-if="logoutNotice"');
|
||||
expect(source).toContain("LOGOUT_REASON_TIMEOUT");
|
||||
expect(source).toContain("LOGOUT_REASON_AUTH_EXPIRED");
|
||||
expect(source).toContain("LOGOUT_REASON_MANUAL");
|
||||
expect(source).toContain("30 分钟未检测到任何操作。为保护项目数据,请重新登录后继续。");
|
||||
expect(source).toContain("登录状态已失效");
|
||||
expect(source).toContain("已安全退出");
|
||||
expect(source).toContain(".logout-notice");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user