feat: 构建品牌视图与三栏页面编辑工作台

This commit is contained in:
que01 committed 2026-10-10 10:38:47 +08:00
1 parent a2932b1134
commit 860d9266fe
7 files changed
+128 -20

No files matched your search

@@ -330,6 +330,10 @@ test("Admin 按通用预览目标筛选字段并同步品牌草稿", async ({ pa
await page.getByLabel("密码").fill("fixture-password");
await page.locator('button[type="submit"]').click();
await expect(page.getByText("小程序页面配置")).toBeVisible();
await expect(page.getByLabel("品牌名称", { exact: true })).toBeHidden();
await page.getByText("品牌资料", { exact: true }).last().click();
await expect(page.getByLabel("品牌名称", { exact: true })).toBeVisible();
await page.getByText("页面编辑", { exact: true }).click();
const preview = page.locator(".component-template-preview");
await expect(preview.locator(".food-home .name")).toContainText("测试主理人");
await expect(page.getByText("选择要编辑的区域", { exact: true })).toBeVisible();