diff --git a/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.test.tsx b/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.test.tsx index c0eb64da..5218874f 100644 --- a/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.test.tsx +++ b/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.test.tsx @@ -94,7 +94,8 @@ test('exposes only account and password login on the public sign-in screen', asy render( undefined} />); - expect(await screen.findByRole('form', { name: '平台账号登录' })).toBeInTheDocument(); + expect(await screen.findByRole('form', { name: '账号密码登录' })).toBeInTheDocument(); + expect(screen.getByText('使用管理员为你开通的账号和密码登录。')).toBeInTheDocument(); expect(screen.getByPlaceholderText('请输入用户名')).toHaveAttribute('autocomplete', 'username'); expect(screen.getByPlaceholderText('请输入密码')).toHaveAttribute('autocomplete', 'current-password'); expect(screen.queryByRole('tab')).not.toBeInTheDocument(); diff --git a/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.tsx b/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.tsx index 168f6bca..c77dc465 100644 --- a/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.tsx +++ b/vehicle-data-platform/apps/web/src/v2/auth/AuthGate.tsx @@ -147,12 +147,12 @@ export function AuthGate({ children }: { children: ReactNode }) { -
+
羚牛智能 - }>账号权限登录 + }>账号密码登录 登录车辆数据中台 - 使用管理员为你开通的账号登录。 + 使用管理员为你开通的账号和密码登录。
diff --git a/vehicle-data-platform/apps/web/src/v2/productionEntry.test.ts b/vehicle-data-platform/apps/web/src/v2/productionEntry.test.ts index 5dec05cb..8a07ec3c 100644 --- a/vehicle-data-platform/apps/web/src/v2/productionEntry.test.ts +++ b/vehicle-data-platform/apps/web/src/v2/productionEntry.test.ts @@ -653,6 +653,8 @@ describe('V2 production entry', () => { expect(authGateSource.match(/账号密码登录'); expect(passwordInputSource).toContain('