fix: 收口模板预览状态与媒体矩阵

This commit is contained in:
que01 committed 2026-10-16 22:53:05 +08:00
1 parent 5bf54096be
commit b1e8012ded
28 files changed
+1015 -56

No files matched your search

@@ -102,7 +102,7 @@ test("模板管理可重试预览,并切换我的、详情和禁止提交的
);
await expect(modal.getByText("演示数据:独立预览内容")).toBeVisible();
await modal.getByText("资源诊断", { exact: true }).click();
await expect(modal.getByText("内容缺失", { exact: true }).first()).toBeVisible();
await expect(modal.getByText("内容缺失", { exact: true })).toHaveCount(0);
await expect(modal.getByText("包内资源已验证", { exact: true }).first()).toBeVisible();
await captureVisualEvidence("home");
const choosePage = async (label: string) => {
@@ -119,7 +119,7 @@ test("模板管理可重试预览,并切换我的、详情和禁止提交的
await modal.getByLabel("预览页面").click();
await page.locator(".ant-select-item-option-content").getByText("首页", { exact: true }).click();
await modal.getByText("资源诊断", { exact: true }).click();
await expect(modal.getByText("内容缺失", { exact: true }).first()).toBeVisible();
await expect(modal.getByText("内容缺失", { exact: true })).toHaveCount(0);
await expect(modal.getByText("包内资源已验证", { exact: true }).first()).toBeVisible();
await choosePage("我的");
await expect(modal.locator(".component-template-preview")).toContainText("我的咨询记录");