提交 d3be3a4d 编写于 作者: A Anne_LXM

test register.test.js

上级 72b0d66d
module.exports = {
"compile": true,
"h5": {
"options": {
"headless": false
},
"executablePath": "C:/Program Files/Google/Chrome/Application/chrome.exe"
},
"mp-weixin": {
"port": 9420,
"account": "",
"args": "",
"cwd": "",
"launch": true,
"teardown": "disconnect",
"remote": false,
"executablePath": "D:/Downloads/weixin-xcx/微信web开发者工具/cli.bat"
},
"app-plus": {
"android": {
"id": "emulator-5556",
"executablePath": "D:\\HX\\alpha\\HBuilderX\\plugins\\launcher\\base\\android_base.apk"
},
"version": "D:\\HX\\alpha\\HBuilderX\\plugins\\launcher\\base\\version.txt",
"ios": {
"id": "",
"executablePath": ""
}
}
}
"compile": true,
"h5": {
"options": {
"headless": false
},
"executablePath": ""
},
"mp-weixin": {
"port": 9420,
"account": "",
"args": "",
"cwd": "",
"launch": true,
"teardown": "disconnect",
"remote": false,
"executablePath": "D:/software/weixin-10-12/微信web开发者工具/cli.bat"
},
"app-plus": {
"android": {
"id": "emulator-5554",
"executablePath": "D:\\HX\\内部版\\正式版\\HBuilderX.4.06.2024032504\\HBuilderX\\plugins\\launcher\\base\\android_base.apk"
},
"version": "D:\\HX\\内部版\\正式版\\HBuilderX.4.06.2024032504\\HBuilderX\\plugins\\launcher\\base\\version.txt",
"ios": {
"id": "",
"executablePath": ""
}
}
}
\ No newline at end of file
......@@ -13,14 +13,14 @@ describe('register', () => {
'password': "dcloud2022",
'password2': "dcloud2022",
"captcha": "1234",
isAgree: true,
needPopupAgreements:false,
isTest:true
},
isAgree: true,
needPopupAgreements:false,
isTest:true
})
const resLogin = await page.callMethod('submit')
console.log("resLogin: ", resLogin);
expect.assertions(1);
// expect.assertions(1);
switch (resLogin.errCode) {
case 0:
console.log('注册成功')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册