fix: 补齐餐饮首页可编辑区域
This commit is contained in:
1 parent
66dbba5748
commit
df2b1f6031
5 files changed
+79
-5
No files matched your search
@@ -194,6 +194,7 @@ const templateContent = {
|
||||
{ key: "food.home.identity", label: "主理人身份" },
|
||||
{ key: "food.home.location", label: "服务地点" },
|
||||
{ key: "food.home.offerings-heading", label: "餐品区域标题" },
|
||||
{ key: "food.home.actions", label: "首页操作按钮" },
|
||||
],
|
||||
fields: [
|
||||
{
|
||||
@@ -224,6 +225,13 @@ const templateContent = {
|
||||
label: "招牌餐品标题",
|
||||
input: "text",
|
||||
},
|
||||
{
|
||||
key: "primaryAction",
|
||||
binding: "brand.config.visualPresentation.home.primaryAction",
|
||||
previewTarget: "food.home.actions",
|
||||
label: "咨询按钮",
|
||||
input: "text",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -353,6 +361,9 @@ test("Admin 按通用预览目标筛选字段并同步品牌草稿", async ({ pa
|
||||
);
|
||||
await expect(actionButtons.nth(0)).toContainText("咨询 / 预订");
|
||||
await expect(actionButtons.nth(1)).toContainText("查看餐品");
|
||||
await preview.locator('[data-editor-target="food.home.actions"]').click();
|
||||
await expect(page.getByLabel("咨询按钮")).toBeVisible();
|
||||
await page.keyboard.press("Escape");
|
||||
await preview.locator('[data-editor-target="food.home.location"]').click();
|
||||
await expect(page.getByText("出摊信息标题")).toBeVisible();
|
||||
await expect(page.getByText("招牌餐品标题")).toHaveCount(0);
|
||||
|
||||
Reference in new issue
Block a user