fix: 固化出摊服务按钮跨端样式契约

This commit is contained in:
que01 committed 2026-10-08 16:41:03 +08:00
1 parent 056e7d3711
commit 9d2038cc93
3 files changed
+11 -2

No files matched your search

+6
View File
@@ -26,6 +26,12 @@ test("真实 API 驱动首页、出摊和主理人视觉槽位", async ({ page }
expect(Math.abs(widths.image - widths.parent)).toBeLessThan(2);
await page.getByText("出摊服务", { exact: true }).click();
await expect(page.locator(".schedule")).toHaveCount(2);
await expect(page.locator(".process-action")).toHaveCount(1);
const processAction = await page.locator(".process-action").boundingBox();
const processFoot = await page.locator(".process-foot").boundingBox();
expect(processAction!.x + processAction!.width).toBeLessThanOrEqual(
processFoot!.x + processFoot!.width + 1,
);
await expect(page.locator(".delivery-item")).toHaveCount(2);
await expect(page.locator(".step")).toHaveCount(4);
await page.screenshot({