From 75ca4debddb7ebc20bf06e2a2e466ede1dbc0e7e Mon Sep 17 00:00:00 2001 From: anne-lxm <1076217653@qq.com> Date: Fri, 31 Mar 2023 21:39:50 +0800 Subject: [PATCH] fix captcha errMsg --- uni_modules/uni-id-pages/pages/login/login-withpwd.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uni_modules/uni-id-pages/pages/login/login-withpwd.test.js b/uni_modules/uni-id-pages/pages/login/login-withpwd.test.js index 536f9a1..2fe4830 100644 --- a/uni_modules/uni-id-pages/pages/login/login-withpwd.test.js +++ b/uni_modules/uni-id-pages/pages/login/login-withpwd.test.js @@ -57,7 +57,8 @@ describe('uni_modules/uni-id-pages/pages/login/login-withpwd.vue', () => { break; case "uni-id-captcha-required": - expect(resLogin.errMsg).toBe("请输入图形验证码"); + const expectCaptchaStr = ["请输入图形验证码","Captcha required"] + expect(expectCaptchaStr).toBe(resLogin.errMsg); await page.setData({ "captcha":"1234" }) -- GitLab