fix(ci): 质量检查 - 同步格式、前端断言与存储降级

This commit is contained in:
cn-derekdu
2026-09-19 06:49:19 +00:00
committed by ddCat
parent 6edd8b1e8b
commit d8e9928ce3
12 changed files with 57 additions and 46 deletions

View File

@@ -6,7 +6,6 @@ test("initial HTML stays brand neutral until the public appearance is resolved",
const [html, mainSource] = await Promise.all([Bun.file(new URL("../index.html", import.meta.url)).text(), Bun.file(new URL("../src/main.tsx", import.meta.url)).text()]);
expect(html).not.toContain("影策");
expect(html).not.toContain("/logo.svg");
expect(html).toContain("<title>正在加载</title>");
expect(mainSource.indexOf("bootstrapAppearance()")).toBeLessThan(mainSource.indexOf('import("./application")'));
});
@@ -100,7 +99,7 @@ test("appearance management exposes light and dark logo uploads plus the frame s
expect(pageSource).toContain("深浅模式 Logo 预览");
expect(pageSource).toContain("登录页视频自动播放");
expect(pageSource).toContain("authVideoAutoplay");
expect(brandSource).toContain("useThemeStore");
expect(brandSource).toContain("useActiveTheme");
expect(brandSource).toContain("data-logo-frame-enabled");
expect(brandSource).toContain("failedSource === source");
expect(brandSource).toContain('aria-hidden="true"');