提交 87315eae 编写于 作者: A Anne_LXM

添加测试例标识

上级 fe255277
......@@ -6,7 +6,6 @@ describe('pages/user-info/add.vue', () => {
page = await program.reLaunch('/pages/user-info/add')
await page.waitFor('view')
page = await program.currentPage()
// console.log("page-add: ",page);
})
it('输入表单内容', async () => {
......@@ -30,7 +29,8 @@ describe('pages/user-info/add.vue', () => {
"party_member": true,
"hobby":["dance"],
"comment": "好的"
}
},
"isTest":true
})
//console.log(await page.data('formData'), "setForm---");
......
......@@ -77,6 +77,7 @@
"comment": ""
}
return {
isTest:false,
formData,
formOptions: {
"gender_localdata": [
......@@ -140,8 +141,10 @@
icon: 'none',
title: '新增成功'
})
this.getOpenerEventChannel().emit('refreshData')
setTimeout(() => uni.navigateBack(), 500)
if(!isTest){
this.getOpenerEventChannel().emit('refreshData')
setTimeout(() => uni.navigateBack(), 500)
}
return res
}).catch((err) => {
uni.showModal({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册