This commit is contained in:
2026-09-11 16:17:24 +08:00
parent 80e83a6668
commit ec7f76fede
18 changed files with 263 additions and 31 deletions
@@ -67,6 +67,15 @@ test('implements every backend registration field and real submission', () => {
assert.match(registerSource, /registerMerchant\(/)
assert.match(registerSource, /4–64 位/)
assert.match(registerSource, /8–72 位/)
assert.match(registerSource, /label="法定代表人(选填)" prop="legalPerson"/)
assert.doesNotMatch(registerSource, /label="法定代表人[^\"]*" prop="legalPerson" required/)
assert.doesNotMatch(registerSource, /required: true, message: '请输入法定代表人'/)
assert.match(authApiSource, /legalPerson\?: string/)
})
test('shows an explicit registration entry directly below the login button', () => {
assert.match(loginSource, /<el-button[^>]*class="auth-submit"[\s\S]*?<p class="login-register-entry">还没有企业账号?<RouterLink to="\/register">立即注册<\/RouterLink><\/p>/)
assert.match(stylesSource, /\.login-register-entry \{[^}]*text-align: center;/)
})
test('shows immediate login after registration and separates company review from account activation', () => {