fix: 固化出摊服务按钮跨端样式契约
This commit is contained in:
1 parent
056e7d3711
commit
9d2038cc93
3 files changed
+11
-2
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user