From b31b1c65affe19797fab992240c12cc3fbb6dae5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 6 Nov 2026 21:37:10 +0800 Subject: [PATCH] =?UTF-8?q?test:=20match=20the=20login=20page's=20?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E7=99=BB=E5=BD=95=20tab,=20not=20th?= =?UTF-8?q?e=20removed=20intro=20sentence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01DbBXozbkyFNqbu8pVEtZ7W --- frontend/tests/admin-operation-reauth-removal.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/tests/admin-operation-reauth-removal.test.ts b/frontend/tests/admin-operation-reauth-removal.test.ts index dc1a9e240..4ba3748ae 100644 --- a/frontend/tests/admin-operation-reauth-removal.test.ts +++ b/frontend/tests/admin-operation-reauth-removal.test.ts @@ -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>/); + assert.match(loginUi, />邮箱验证码<\/Label>/); assert.match(loginUi, /验证并登录/); });