From 6637c2cdc946266556a6f67cabaa1a9964369638 Mon Sep 17 00:00:00 2001 From: shutao Date: Fri, 14 Jun 2024 18:01:36 +0800 Subject: [PATCH] update list-view.test.js --- pages/component/list-view/list-view.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/component/list-view/list-view.test.js b/pages/component/list-view/list-view.test.js index 8c139c6e..a358d3e6 100644 --- a/pages/component/list-view/list-view.test.js +++ b/pages/component/list-view/list-view.test.js @@ -91,7 +91,7 @@ describe('component-native-list-view', () => { expect(endDetail.scrollTop).toBeGreaterThan(0) expect(endDetail.scrollHeight).toBeGreaterThan(0) // 在安卓端 "scrollWidth":0 - // expect(endDetail.scrollWidth).toBeGreaterThan(0) + expect(endDetail.scrollWidth).toBeGreaterThan(0) }) if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { @@ -134,6 +134,8 @@ describe('component-native-list-view', () => { }) await page.waitFor(2000) expect(await page.data('refresherrefresh')).toBe(true) + //延迟 等待下拉刷新执行结束 防止后续测试任务结果异常 + await page.waitFor(1000) }) //检测竖向scroll_into_view属性赋值 备注:iOS本地测试结果正确,但是自动化测试结果错误 -- GitLab