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 6fa9e79332888d3e46d387e061c65788fcdd9afc..08f72a9d10c0ff7f0d160d3426e3e0750dd54235 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,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(); }); });