diff --git a/pages/API/get-current-pages/get-current-pages.test.js b/pages/API/get-current-pages/get-current-pages.test.js index 227cd677cbfd611df8f638948ecb7d06bab27e9a..f4b78e342ba0218334f78882ecdf74a40be25dc8 100644 --- a/pages/API/get-current-pages/get-current-pages.test.js +++ b/pages/API/get-current-pages/get-current-pages.test.js @@ -60,6 +60,18 @@ describe('getCurrentPages', () => { expect(image3).toSaveImageSnapshot({customSnapshotIdentifier() { return 'get-current-pages-test-js-get-current-pages-page-style-after-set-page-style' }}); + + // setPageStyle + await page.callMethod('setPageStyle', { + hideBottomNavigationIndicator: true, + hideStatusBar: true + }) + await page.waitFor(500) + const image4 = await program.screenshot({fullPage: true}); + expect(image4).toSaveImageSnapshot({customSnapshotIdentifier() { + return 'get-current-pages-test-hideStatusBar-hideBottomNavigationIndicator' + }}); + }) it('$page', async () => { await page.setData({testing: true})