This commit is contained in:
2026-09-02 10:05:46 +08:00
parent e5e412682c
commit 6dcea387d3
3 changed files with 11 additions and 8 deletions
+5 -2
View File
@@ -50,10 +50,13 @@ test('persists both rotating tokens according to the remember choice', () => {
})
test('implements every backend registration field and real submission', () => {
for (const field of ['username', 'companyName', 'displayName', 'legalPerson', 'legalPhone', 'contactEmail', 'countryCode', 'address', 'password', 'agreement']) {
for (const field of ['username', 'companyName', 'displayName', 'legalPerson', 'phone', 'contactEmail', 'countryCode', 'address', 'password', 'agreement']) {
assert.match(registerSource, new RegExp(`prop="${field}"`))
}
assert.match(registerSource, /label="登录手机号" prop="legalPhone"/)
assert.match(registerSource, /label="登录手机号" prop="phone"/)
assert.doesNotMatch(registerSource, /legalPhone/)
assert.match(authApiSource, /phone: string/)
assert.doesNotMatch(authApiSource, /legalPhone/)
assert.match(registerSource, /注册时同时初始化公司联系电话;注册后两者可分别修改,互不联动/)
assert.match(registerSource, /registerMerchant\(/)
assert.match(registerSource, /4–64 位/)