From d3be3a4d995e7313f9017cc1ef76207f6d171c68 Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:13:23 +0800 Subject: [PATCH] test register.test.js --- env.js | 58 +++++++++---------- .../pages/register/register.test.js | 8 +-- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/env.js b/env.js index b68cbba..77271e5 100644 --- a/env.js +++ b/env.js @@ -1,30 +1,30 @@ 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 diff --git a/uni_modules/uni-id-pages/pages/register/register.test.js b/uni_modules/uni-id-pages/pages/register/register.test.js index 8584cfe..547121b 100644 --- a/uni_modules/uni-id-pages/pages/register/register.test.js +++ b/uni_modules/uni-id-pages/pages/register/register.test.js @@ -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('注册成功') -- GitLab