优化
This commit is contained in:
@@ -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 位/)
|
||||
|
||||
Reference in New Issue
Block a user