From f154c1202a3caafaf0d318a0b7617321c0f1268d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 19 Oct 2023 16:43:35 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BC=98=E5=8C=96=20uni.setNavigationB?= =?UTF-8?q?arColor=20=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../set-custom-navigation-bar-color.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.test.js b/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.test.js index 08f72a9d..fe999398 100644 --- a/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.test.js +++ b/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.test.js @@ -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(); }); -- GitLab