From af027df170be222c91ccccb4ab98bd5f1c5c31f8 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Thu, 14 Nov 2024 15:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dialogPage=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/dialog-page/dialog-page.test.js | 28 ++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/pages/API/dialog-page/dialog-page.test.js b/pages/API/dialog-page/dialog-page.test.js index b7abc7bb..5f596eff 100644 --- a/pages/API/dialog-page/dialog-page.test.js +++ b/pages/API/dialog-page/dialog-page.test.js @@ -310,19 +310,21 @@ describe('dialog page', () => { }) it('dialogPage hideStatusBar hideBottomNavigationIndicator', async () => { - await page.callMethod('openDialog2ForTest'); - await page.waitFor(1000); - await page.callMethod('setPageStyleForTest', { - hideStatusBar: true, - hideBottomNavigationIndicator: true - }); - await page.waitFor(2000); - const image = await program.screenshot({ - deviceShot: true - }); - expect(image).toSaveImageSnapshot(); - await page.waitFor(2000); - await page.callMethod('closeDialog2ForTest'); + if (isAndroid) { + await page.callMethod('openDialog2ForTest'); + await page.waitFor(1000); + await page.callMethod('setPageStyleForTest', { + hideStatusBar: true, + hideBottomNavigationIndicator: true + }); + await page.waitFor(2000); + const image = await program.screenshot({ + deviceShot: true + }); + expect(image).toSaveImageSnapshot(); + await page.waitFor(2000); + await page.callMethod('closeDialog2ForTest'); + } }); afterAll(async () => { -- GitLab