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 a440c56c75171157b61f2b614a42719873bef282..dbd15e354cb0f35deda9ec7f45491651bdc2bbee 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)