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

添加测试例标识

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