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

test: 优化 uni.setNavigationBarColor 测试例

上级 04d7543a
......@@ -18,12 +18,14 @@ 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}});
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}});
expect(image).toMatchImageSnapshot();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册