diff --git a/src/modules/appointment-calendar/AppointmentCalendarPanel.test.ts b/src/modules/appointment-calendar/AppointmentCalendarPanel.test.ts index 4cb691ee..13399974 100644 --- a/src/modules/appointment-calendar/AppointmentCalendarPanel.test.ts +++ b/src/modules/appointment-calendar/AppointmentCalendarPanel.test.ts @@ -108,7 +108,8 @@ describe('four-type appointment calendar', () => { expect(wrapper.text()).toContain('正在读取安排') expect(wrapper.text()).not.toContain('当天暂无安排') await wrapper.setProps({ loading: false, incomplete: true }) - expect(wrapper.text()).toContain('部分数据不可用') + expect(wrapper.get('[aria-label="当天安排"] header').text()).toContain('当前已加载 0 项安排') + expect(wrapper.text()).not.toContain('部分数据不可用') expect(wrapper.text()).not.toContain('当天暂无安排') }) }) diff --git a/src/modules/appointment-calendar/AppointmentCalendarPanel.vue b/src/modules/appointment-calendar/AppointmentCalendarPanel.vue index 76913418..abf1a7e5 100644 --- a/src/modules/appointment-calendar/AppointmentCalendarPanel.vue +++ b/src/modules/appointment-calendar/AppointmentCalendarPanel.vue @@ -70,9 +70,9 @@ function changeMode(next: CalendarMode) {