fix: 收口依赖兼容与会话撤销

为 miniprogram-ci 和 Jimp 依赖增加兼容 patch 与 smoke test;修复平台模板管理员路由漏配;收紧模板契约校验;为 admin/customer 增加 token 撤销和集中会话存储;同步品牌切换角色、doctor source hash、多屏宽截图证据和 CI 构建门禁。
This commit is contained in:
que01 committed 2026-10-18 23:43:25 +08:00
1 parent 4f0b50c7f1
commit 3017e3eb49
65 files changed
+1623 -975

No files matched your search

@@ -232,12 +232,17 @@ test("导入包预览矩阵展示身份、资源和完整媒体槽位", async ({
if (evidenceDirectory) {
mkdirSync(evidenceDirectory, { recursive: true });
await page.screenshot({
path: path.join(
evidenceDirectory,
`${String(sequence).padStart(2, "0")}-${mediaCase.packageKey}-${mediaCase.industry}.png`,
),
});
// 多屏宽证据:320/375/390 均验证实际渲染,而不是只检查 DOM 存在。
for (const viewportWidth of [320, 375, 390]) {
await page.setViewportSize({ width: viewportWidth, height: 812 });
await expect(modal.locator(".component-template-preview")).toBeVisible();
await page.screenshot({
path: path.join(
evidenceDirectory,
`${String(sequence).padStart(2, "0")}-${mediaCase.packageKey}-${mediaCase.industry}-${viewportWidth}.png`,
),
});
}
}
// 清空业务记录后重新打开真实包预览,验证空态不是仅在源码中存在。
@@ -249,6 +254,7 @@ test("导入包预览矩阵展示身份、资源和完整媒体槽位", async ({
/正在整理中/,
);
if (evidenceDirectory) {
await page.setViewportSize({ width: 375, height: 812 });
await page.screenshot({
path: path.join(
evidenceDirectory,