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 a8cbee3a3949d3220440cc022d9a1c4bce60a1bc..f3f812c96a85bee155c09e0a7ae0e29739ad25b6 100644 --- a/pages/API/get-current-pages/get-current-pages.test.js +++ b/pages/API/get-current-pages/get-current-pages.test.js @@ -33,7 +33,9 @@ describe('getCurrentPages', () => { expect(isEnablePullDownRefresh1).toBe(true) // setPageStyle - await page.callMethod('setPageStyle', false) + await page.callMethod('setPageStyle', { + enablePullDownRefresh: false + }) await page.waitFor(200) await page.callMethod('getPageStyle') @@ -50,7 +52,9 @@ describe('getCurrentPages', () => { expect(image2).toSaveImageSnapshot(); await page.waitFor(3500) - await page.callMethod('setPageStyle', true) + await page.callMethod('setPageStyle', { + enablePullDownRefresh: true + }) await page.waitFor(200) await page.callMethod('startPullDownRefresh') await page.waitFor(500) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index a0c61895f943bd3a93b1661f914165a9a698eb8c..760aef232c9aa5d96a54719a204512c3063c52c8 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -1,27 +1,49 @@ -