This commit is contained in:
@@ -117,6 +117,16 @@ describe('task and habit row decoration', () => {
|
||||
expect(mvpPanel).not.toContain("view === 'today-habits' && busy\" class=\"empty-panel\">加载中…")
|
||||
})
|
||||
|
||||
it('shows a password form with confirmation and calls the protected endpoint', () => {
|
||||
expect(mvpPanel).toContain('class="password-form"')
|
||||
expect(mvpPanel).toContain('aria-label="当前密码"')
|
||||
expect(mvpPanel).toContain('aria-label="新密码"')
|
||||
expect(mvpPanel).toContain('aria-label="确认新密码"')
|
||||
expect(mvpPanel).toContain("request('/auth/change-password'")
|
||||
expect(mvpPanel).toContain('两次输入的新密码不一致')
|
||||
expect(css).toContain('.password-form{width:100%;display:grid;gap:10px}')
|
||||
})
|
||||
|
||||
it('keeps habit cards borderless so the rounded left edge has no visual gap', () => {
|
||||
expect(css).toMatch(/\.habit-row\{border:0;/)
|
||||
expect(css).not.toMatch(/\.habit-row\{[^}]*border-top:/)
|
||||
|
||||
Reference in New Issue
Block a user