From c3e943d3bee2ff6b3b687a4fd506bfc66b07d2b0 Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 8 Nov 2024 19:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20hideBottomNavigationIndica?= =?UTF-8?q?tor=E3=80=81hideStatusBar=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 --- .../API/get-current-pages/get-current-pages.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 227cd677..f4b78e34 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}) -- GitLab