Tests were looking for .stats-container, .dashboard, .audit-container but views use .page-container consistently. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@@ -126,7 +126,7 @@ describe('Audit View', () => {
const wrapper = mountAudit()
await flushPromises()
- expect(wrapper.find('.audit-container').exists()).toBe(true)
+ expect(wrapper.find('.page-container').exists()).toBe(true)
})
it('应该显示搜索区域', async () => {
@@ -85,7 +85,7 @@ describe('Dashboard View', () => {
const wrapper = mountDashboard()
- expect(wrapper.find('.dashboard').exists()).toBe(true)
expect(wrapper.find('.dashboard__header').exists()).toBe(true)
expect(wrapper.find('.dashboard__title').exists()).toBe(true)
@@ -66,7 +66,7 @@ describe('Stats View', () => {
const wrapper = mountStats()
- expect(wrapper.find('.stats-container').exists()).toBe(true)
it('应该显示刷新按钮', async () => {