diff --git a/pages.json b/pages.json index d922a3b121c11b1f70eb62f8047c67b8f818b416..99c42cc8a37afde6b2b4871fd7588d3c8274c606 100644 --- a/pages.json +++ b/pages.json @@ -1080,7 +1080,7 @@ { "path": "pages/template/swiper-vertical-video/swiper-vertical-video", "style": { - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarBackgroundColor": "transparent" } }, @@ -1096,7 +1096,7 @@ "path": "pages/template/scroll-fold-nav/scroll-fold-nav", "style": { "navigationStyle": "custom", - "navigationBarTextStyle": "black", + "navigationBarTextStyle": "black", "navigationBarBackgroundColor": "transparent" } }, @@ -1131,7 +1131,7 @@ { "path": "pages/template/pull-zoom-image/pull-zoom-image", "style": { - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarBackgroundColor": "transparent" } }, @@ -1181,7 +1181,7 @@ "path": "pages/webview-screenshot-comparison/webview-screenshot-comparison", "style": { "navigationBarTitleText": "截图对比测试", - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarBackgroundColor": "transparent" } }, @@ -1189,7 +1189,7 @@ "path": "pages/webview-screenshot/webview-screenshot", "style": { "navigationBarTitleText": "webview 截图测试", - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarBackgroundColor": "transparent" } }, @@ -1214,8 +1214,14 @@ "navigationBarTitleText": "支付", "enablePullDownRefresh": false } + }, + { + "path": "pages/component/list-view/list-view-refresh", + "style": { + "navigationBarTitleText": "list-view-refresh", + "enablePullDownRefresh": false + } } - // #endif ], "globalStyle": { diff --git a/pages/component/list-view/list-view-refresh.test.js b/pages/component/list-view/list-view-refresh.test.js new file mode 100644 index 0000000000000000000000000000000000000000..ff0a07ab4dc57e6a529d7d1df0d2c1ca9599ba72 --- /dev/null +++ b/pages/component/list-view/list-view-refresh.test.js @@ -0,0 +1,24 @@ +describe('component-native-list-view-refresh', () => { + if (process.env.uniTestPlatformInfo.startsWith('web')) { + it('dummyTest', async () => { + expect(1).toBe(1) + }) + return + } + let page + beforeAll(async () => { + //打开list-view测试页 + page = await program.reLaunch('/pages/component/list-view/list-view-refresh') + await page.waitFor(600) + }) + + it('check_list_view_refresh', async () => { + await page.waitFor(async () => { + return await page.data('refresherTriggered') === false; + }); + //等待下拉刷新结束 + await page.waitFor(500) + const image = await program.screenshot(); + expect(image).toMatchImageSnapshot(); + }) +}) diff --git a/pages/component/list-view/list-view-refresh.uvue b/pages/component/list-view/list-view-refresh.uvue new file mode 100644 index 0000000000000000000000000000000000000000..9299b9fad79a580d4df578b691cb69128964d68f --- /dev/null +++ b/pages/component/list-view/list-view-refresh.uvue @@ -0,0 +1,49 @@ + + + + diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index 6e0ca02c03c79a78d6957f98172926617cb94c04..40a59cce8d20f716e5fad79b1c0119799ce84723 100644 --- a/pages/component/list-view/list-view.uvue +++ b/pages/component/list-view/list-view.uvue @@ -182,7 +182,11 @@ @confirm="confirm_refresher_background_input"> - + + +