From 912c6ba73c067d09434d48f5a1a20c4a21080ab7 Mon Sep 17 00:00:00 2001 From: shutao Date: Fri, 8 Nov 2024 16:15:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20set-page-style-disable-pull-down-refre?= =?UTF-8?q?sh.test.js=20=E8=A1=A5=E5=85=85=E5=88=A4=E6=96=ADpageStyle?= =?UTF-8?q?=E5=AE=8C=E6=95=B4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../set-page-style-disable-pull-down-refresh.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js b/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js index a440c56c..dbd15e35 100644 --- a/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js +++ b/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh.test.js @@ -13,8 +13,11 @@ describe('getCurrentPages', () => { await page.callMethod('getPageStyle') await page.waitFor(200) - const isEnablePullDownRefresh1 = (await page.data()).currentPageStyle.enablePullDownRefresh + const currentPageStyle = (await page.data()).currentPageStyle + const isEnablePullDownRefresh1 = currentPageStyle.enablePullDownRefresh expect(isEnablePullDownRefresh1).toBe(false) + //校验pageStyle数据是否完整 + expect(currentPageStyle.navigationStyle != undefined && currentPageStyle.onReachBottomDistance != undefined).toBe(true) await page.callMethod('setPageStyle', true) await page.waitFor(200) -- GitLab