fix: 修复模板画布点选与保存切页回归
This commit is contained in:
1 parent
e6d843b4a7
commit
cd2992c00a
15 files changed
+98
-40
No files matched your search
@@ -179,7 +179,10 @@ test("业务编辑弹窗预览列表与详情详情同一份内容", async ({ pa
|
||||
await expect(preview.locator(".food-detail")).toContainText("列表实时预览餐品");
|
||||
await expect(page.getByLabel("餐品介绍")).toHaveValue("弹窗编辑后的餐品介绍");
|
||||
|
||||
await page.locator(".ant-modal-footer").getByRole("button", { name: "OK" }).click();
|
||||
await page
|
||||
.locator(".ant-modal-footer")
|
||||
.getByRole("button", { name: "确 定", exact: true })
|
||||
.click();
|
||||
await expect(page.getByText("业务提供项已保存")).toBeVisible();
|
||||
await page.locator(".ant-modal-wrap").waitFor({ state: "hidden" });
|
||||
|
||||
@@ -199,11 +202,14 @@ test("业务编辑弹窗预览列表与详情详情同一份内容", async ({ pa
|
||||
expect(savedBody.name).toBe("小程序页保存后的餐品");
|
||||
expect(savedBody.summary).toBe("跨入口保存后的业务简介");
|
||||
await page.goBack();
|
||||
await expect(page.getByText("小程序内容:业务展示与详情")).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: "业务提供项", exact: true })).toBeVisible();
|
||||
await page.getByRole("button", { name: "编辑详情" }).click();
|
||||
await expect(page.getByLabel("名称", { exact: true })).toHaveValue("小程序页保存后的餐品");
|
||||
await expect(page.getByLabel("餐品介绍")).toHaveValue("弹窗编辑后的餐品介绍");
|
||||
await page.locator(".ant-modal-footer").getByRole("button", { name: "OK" }).click();
|
||||
await page
|
||||
.locator(".ant-modal-footer")
|
||||
.getByRole("button", { name: "确 定", exact: true })
|
||||
.click();
|
||||
await expect(page.getByText("业务提供项已保存")).toBeVisible();
|
||||
expect(savedBody.name).toBe("小程序页保存后的餐品");
|
||||
expect(savedBody.summary).toBe("跨入口保存后的业务简介");
|
||||
|
||||
Reference in new issue
Block a user