提交 912c6ba7 编写于 作者: shutao-dc's avatar shutao-dc

update set-page-style-disable-pull-down-refresh.test.js 补充判断pageStyle完整校验

上级 00353bef
...@@ -13,8 +13,11 @@ describe('getCurrentPages', () => { ...@@ -13,8 +13,11 @@ describe('getCurrentPages', () => {
await page.callMethod('getPageStyle') await page.callMethod('getPageStyle')
await page.waitFor(200) 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) expect(isEnablePullDownRefresh1).toBe(false)
//校验pageStyle数据是否完整
expect(currentPageStyle.navigationStyle != undefined && currentPageStyle.onReachBottomDistance != undefined).toBe(true)
await page.callMethod('setPageStyle', true) await page.callMethod('setPageStyle', true)
await page.waitFor(200) await page.waitFor(200)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册