提交 d3be3a4d 编写于 作者: A Anne_LXM

test register.test.js

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