From 7b2a3764fa77591edd1c09a7a5fa4b78f53499f8 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 (cherry picked from commit c3e943d3bee2ff6b3b687a4fd506bfc66b07d2b0) --- .../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