test: match the login page's 验证码登录 tab, not the removed intro sentence
The staging gate (#2293) failed on one assertion that pinned the old intro 「邮箱验证码登录,新邮箱将自动创建账户。」. Code sign-in is unchanged; the test now matches the 验证码登录 tab and the 邮箱验证码 field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXozbkyFNqbu8pVEtZ7W
This commit is contained in:
@@ -65,6 +65,9 @@ test("account-level TOTP MFA and customer login email OTP remain available", ()
|
||||
|
||||
assert.match(mfaRoute, /verifyTOTP|verifyBackupCode/);
|
||||
assert.match(mfaUi, /认证器验证码/);
|
||||
assert.match(loginUi, /邮箱验证码登录/);
|
||||
// 原值:匹配说明句「邮箱验证码登录,新邮箱将自动创建账户。」→ 新值:匹配「验证码登录」标签页与「邮箱验证码」输入框
|
||||
// 原因:2026-11-06 登录页文案改为「登录或注册 / 第一次使用的邮箱会自动注册」,验证码登录本身没变
|
||||
assert.match(loginUi, /<TabsTrigger value="otp">验证码登录<\/TabsTrigger>/);
|
||||
assert.match(loginUi, />邮箱验证码<\/Label>/);
|
||||
assert.match(loginUi, /验证并登录/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user