feat: 增强注册流程,添加手机号输入框及相关状态管理逻辑

This commit is contained in:
QLHazyCoder
2026-05-04 17:09:43 +08:00
parent d7d0953a94
commit 6160f4640d
7 changed files with 282 additions and 1 deletions
@@ -60,6 +60,8 @@ test('sidepanel html exposes phone verification toggle and multi-provider SMS ro
assert.match(html, /id="row-phone-verification-fold"/);
assert.match(html, /id="input-phone-verification-enabled"/);
assert.match(html, /id="row-signup-method"/);
assert.match(html, /id="row-signup-phone"/);
assert.match(html, /id="input-signup-phone"/);
assert.match(html, /data-signup-method="email"/);
assert.match(html, /data-signup-method="phone"/);
assert.match(html, /id="row-phone-sms-provider"/);
@@ -120,6 +122,14 @@ test('sidepanel html exposes phone verification toggle and multi-provider SMS ro
assert.doesNotMatch(html, /id="input-account-run-history-text-enabled"/);
});
test('sidepanel source wires runtime signup phone field to background sync messages', () => {
assert.match(sidepanelSource, /function getRuntimeSignupPhoneValue\(state = latestState\)/);
assert.match(sidepanelSource, /function syncSignupPhoneInputFromState\(state = latestState\)/);
assert.match(sidepanelSource, /type:\s*'SET_SIGNUP_PHONE_STATE'/);
assert.match(sidepanelSource, /type:\s*'SAVE_SIGNUP_PHONE'/);
assert.match(sidepanelSource, /message\.payload\.signupPhoneNumber !== undefined/);
});
test('hero sms country helpers keep empty summary state and expose removable order handling', () => {
assert.match(
sidepanelSource,