提交 675e722c 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(自定义导航栏): 调整截图区域

上级 f7f87e56
......@@ -18,13 +18,13 @@ describe("setCustomNavigationBarColor", () => {
it("setNavigationBarColor2", async () => {
await page.callMethod("setNavigationBarColor2");
const image = await program.screenshot();
const image = await program.screenshot({adb: true, area:{x:1000, y: 0, width: 80, height: 88}});
expect(image).toMatchImageSnapshot();
});
it("setNavigationBarColor1", async () => {
await page.callMethod("setNavigationBarColor1");
const image = await program.screenshot();
const image = await program.screenshot({adb: true, area:{x:1000, y: 0, width: 80, height: 88}});
expect(image).toMatchImageSnapshot();
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册