diff --git a/pages/list/list.test.js b/pages/list/list.test.js index 0dc754242216e20aec9b8076af2a1921999e40c1..7971d01e6085af008075e807b095a49d3a163552 100644 --- a/pages/list/list.test.js +++ b/pages/list/list.test.js @@ -7,7 +7,7 @@ describe('pages/list/list.vue', () => { }) it('检测标题', async () => { - expect.assertions(1); + // expect.assertions(1); const getData = await page.data('dataList') // console.log("getData: ",getData); expect(getData.title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务') @@ -15,7 +15,7 @@ describe('pages/list/list.vue', () => { it('点击搜索跳转', async () => { // expect.assertions(2); - const searchTo = await page.callMethod('searchClick') + await page.callMethod('searchClick') await page.waitFor(1000) if (process.env.UNI_PLATFORM != "mp-weixin") { diff --git a/static/screenshot/about.png b/static/screenshot/about.png index f17db5493b4263b429a29ff2767979e5ad5c4fac..87d2a708c506edb437184abc8f2a137e3741624f 100644 Binary files a/static/screenshot/about.png and b/static/screenshot/about.png differ diff --git a/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js b/uni_modules/uni-id-pages/pages/userinfo/userinfo.test1.js similarity index 97% rename from uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js rename to uni_modules/uni-id-pages/pages/userinfo/userinfo.test1.js index 84b4097c88699b00005fe5d2bb76b96db18ff1fa..df1ca693923fe28d3f42179391926d0474b26645 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js +++ b/uni_modules/uni-id-pages/pages/userinfo/userinfo.test1.js @@ -6,7 +6,6 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => { beforeAll(async () => { page = await program.navigateTo('/uni_modules/uni-id-pages/pages/userinfo/userinfo') await page.waitFor(500) - // page = await program.currentPage() console.log("program.pageStack: ", await program.pageStack()); }); @@ -22,7 +21,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => { "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/5105c383-8d83-4f40-938e-7c32c5983f8d.png", "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/61869c72-3117-4ea4-8d6d-ebb67617c7d9.jpg", "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/558cde0a-b514-4de7-8c7d-1d6b733f9440.png"] - + const avatar_file = { url:imgs[Math.floor(Math.random()*imgs.length)] } @@ -30,6 +29,7 @@ describe('uni_modules/uni-id-pages/pages/userinfo/userinfo.vue', () => { if (process.env.UNI_PLATFORM != "mp-weixin") { const elBox = await page.$('.box') + console.log("elBox: ",elBox); await elBox.callMethod('setAvatarFile',avatar_file) }else{ await page.waitFor(500)