feat: make account password login explicit

This commit is contained in:
lingniu
2026-07-19 11:25:57 +08:00
parent a82bb28af9
commit 61ca72fab2
4 changed files with 8 additions and 5 deletions

View File

@@ -653,6 +653,8 @@ describe('V2 production entry', () => {
expect(authGateSource.match(/<PasswordInput/g)).toHaveLength(1);
expect(authGateSource).not.toContain('<Tabs');
expect(authGateSource).not.toContain('运维令牌');
expect(authGateSource).toContain('aria-label="账号密码登录"');
expect(authGateSource).toContain('>账号密码登录</Tag>');
expect(passwordInputSource).toContain('<Input');
expect(passwordInputSource).toContain('<Button');
expect(passwordInputSource).toContain("`${visible ? '隐藏' : '显示'}${visibilityLabel}`");