修改完成

This commit is contained in:
2026-08-21 17:19:00 +08:00
parent 76af4cc492
commit 797a2153aa
3 changed files with 15 additions and 4 deletions
+7 -1
View File
@@ -26,6 +26,9 @@ vm.runInNewContext(`${authSource}\nthis.AuthPageUtilForTest = AuthPageUtil;`, co
assert.strictEqual(context.AuthPageUtilForTest.getReferralInviteCodeFromUrl(), "invite-001");
assert.strictEqual(context.AuthPageUtilForTest.getReferralInviteCodeFromUrl("?referralCode=legacy"), "");
assert(register.includes('type="hidden" id="inviteCode" name="inviteCode"'));
assert(register.includes('$("#inviteCode").val(AuthPageUtil.getReferralInviteCodeFromUrl());'));
assert(register.includes('const inviteCode = $("#inviteCode").val().trim();'));
assert(register.includes("registerData.inviteCode = inviteCode"), "registration must send a non-empty inviteCode");
assert(register.includes('$("#captchaGroup").hide();'), "registration verification must hide after SMS is sent");
assert(register.includes('$("#captchaGroup").show();'), "registration verification must return after the phone changes");
@@ -36,7 +39,10 @@ assert(usercenter.includes("ApiClient.API.referralBind, { inviteCode: inviteCode
assert(promo.includes("NavigationUtil.referralRegisterUrl"), "promotion page must normalize returned links to registration");
assert(login.includes('id="captchaGroup" style="display: none"'));
assert(login.includes('$("#captchaGroup").show();'));
[register, resetPassword].forEach(function (page) {
assert(resetPassword.includes('id="captchaGroup" style="display: none"'));
assert(resetPassword.includes('$("#captchaGroup").hide();'));
assert(resetPassword.includes('$("#captchaGroup").show();'));
[register].forEach(function (page) {
assert(page.includes('id="captchaGroup" style="visibility: hidden"'));
assert(page.includes('$("#captchaGroup").css("visibility", "visible");'));
});