diff --git a/pages/API/dialog-page/dialog-page.test.js b/pages/API/dialog-page/dialog-page.test.js index b7abc7bb46697ee22ba0ee62eacbf4d905bc201f..5f596eff13a08bf46c7f6f3965ccf05296642968 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 () => {