This commit is contained in:
2026-08-12 12:35:32 +08:00
parent 11e085e30f
commit 4fb8b85c13
22 changed files with 161 additions and 47 deletions
+2 -1
View File
@@ -172,7 +172,8 @@ describe('LoginView authentication lifecycle', () => {
await wrapper.get('form').trigger('submit')
await flushPromises()
expect(wrapper.get('[role="alert"]').text()).toBe('network unavailable')
expect(wrapper.get('[role="alert"]').text()).toContain('登录失败,请检查账号和密码后重试')
expect(wrapper.get('[role="alert"]').text()).not.toContain('network unavailable')
expect(initialize).not.toHaveBeenCalled()
expect(replace).not.toHaveBeenCalled()
})