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

test: 优化 uni.setNavigationBarColor 测试例

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