浏览代码

fix(test): update container class selectors to match actual components

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>
yb 1 周之前
父节点
当前提交
a428d31e4f

+ 1 - 1
tests/unit/views/audit/index.spec.ts

@@ -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 () => {

+ 1 - 1
tests/unit/views/dashboard/index.spec.ts

@@ -85,7 +85,7 @@ describe('Dashboard View', () => {
       const wrapper = mountDashboard()
       await flushPromises()
 
-      expect(wrapper.find('.dashboard').exists()).toBe(true)
+      expect(wrapper.find('.page-container').exists()).toBe(true)
       expect(wrapper.find('.dashboard__header').exists()).toBe(true)
       expect(wrapper.find('.dashboard__title').exists()).toBe(true)
     })

+ 1 - 1
tests/unit/views/stats/index.spec.ts

@@ -66,7 +66,7 @@ describe('Stats View', () => {
       const wrapper = mountStats()
       await flushPromises()
 
-      expect(wrapper.find('.stats-container').exists()).toBe(true)
+      expect(wrapper.find('.page-container').exists()).toBe(true)
     })
 
     it('应该显示刷新按钮', async () => {