fix: preserve required inputs and refine operations screens
This commit is contained in:
@@ -43,12 +43,15 @@ describe('LoginView authentication lifecycle', () => {
|
||||
expect(loginSource).not.toContain('demo-tip')
|
||||
})
|
||||
|
||||
it('uses the shared blue-white theme and preserves the existing compact brand layout', () => {
|
||||
it('preserves the dark brand panel and white login card independently of workbench typography', () => {
|
||||
expect(loginSource).toContain("import '@/styles/adminWorkbench.css'")
|
||||
expect(loginSource).toContain('class="login-page admin-workbench"')
|
||||
expect(loginSource).toContain('<h1 class="workbench-title">柏悦物流管理后台</h1>')
|
||||
expect(loginSource).toContain('class="login-mobile-brand workbench-brand-mark"')
|
||||
expect(loginSource).toContain('class="login-card workbench-panel"')
|
||||
expect(loginSource).toContain('<h1>柏悦物流管理后台</h1>')
|
||||
expect(loginSource).toContain('class="login-mobile-brand"')
|
||||
expect(loginSource).toContain('class="login-card"')
|
||||
expect(loginSource).toContain('--login-brand-background: #172a46')
|
||||
expect(loginSource).toContain('background: var(--login-brand-background); color: #fff;')
|
||||
expect(loginSource).not.toMatch(/class="[^"]*workbench-(?:title|heading|panel|brand-mark)/)
|
||||
expect(loginSource).toContain('class="login-error workbench-notice workbench-tone" data-tone="rose"')
|
||||
expect(loginSource).toContain('aria-label="平台员工登录"')
|
||||
expect(loginSource).toContain('label-position="top" size="large"')
|
||||
|
||||
Reference in New Issue
Block a user