fix: 修复预览成功页与记录页运行时报错

This commit is contained in:
que01 committed 2026-10-09 15:24:15 +08:00
1 parent fd2e970d8b
commit 541304a763
4 files changed
+31 -8

No files matched your search

@@ -102,6 +102,8 @@ const templateContent = {
{ key: "service", page: "service", label: "出摊服务" },
{ key: "detail", page: "detail", label: "详情页" },
{ key: "inquiry", page: "inquiry", label: "定制/咨询" },
{ key: "success", page: "success", label: "提交成功页" },
{ key: "records", page: "records", label: "记录页" },
],
assetSlots: [],
trustContentTypes: [
@@ -413,6 +415,12 @@ test("Admin 按通用预览目标筛选字段并同步品牌草稿", async ({ pa
await page.getByRole("button", { name: "浏览页面" }).click();
await preview.locator(".inquiry-form input").first().fill("预览访客");
await expect(preview.locator(".inquiry-form input").first()).toHaveValue("预览访客");
await page.getByText("提交成功页", { exact: true }).click();
await expect(preview.locator(".success-page")).toBeVisible();
await expect(preview.locator(".success-page")).toContainText("已收到你的需求");
await page.getByText("记录页", { exact: true }).click();
await expect(preview.locator(".records-page")).toBeVisible();
await expect(preview.locator(".records-page")).toContainText("请在微信小程序内登录查看");
await page.getByRole("button", { name: "点选编辑" }).click();
await page.getByText("套餐餐品", { exact: true }).click();
await expect