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

test: 调整 setNavigationBarColor 测试截图区域

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