前端任务列表增加来源时间
This commit is contained in:
@@ -494,6 +494,22 @@ describe('reservation P0 views', () => {
|
||||
expect(wrapper.text()).not.toContain('NEW_BOOKING / NEW_BOOKING')
|
||||
})
|
||||
|
||||
it('renders task source received time in the source email column', async () => {
|
||||
const taskListResult = createTaskListResult('GRP-001', 'Booking Request')
|
||||
taskListResult.items[0] = {
|
||||
...taskListResult.items[0]!,
|
||||
source_sender_summary: 'guest@example.test',
|
||||
source_received_at: '2026-07-08T03:00:00Z',
|
||||
}
|
||||
vi.mocked(service.fetchReservationTaskList).mockResolvedValue(taskListResult)
|
||||
|
||||
const wrapper = await mountWithPlugins(ReservationTaskListView)
|
||||
await vi.dynamicImportSettled()
|
||||
|
||||
expect(wrapper.text()).toContain('来源时间')
|
||||
expect(wrapper.text()).toContain('2026-07-08 10:00:00')
|
||||
})
|
||||
|
||||
it('filters source-message-only tasks with S10 and S99 subtypes', async () => {
|
||||
vi.mocked(service.fetchReservationTaskList).mockResolvedValue(createSourceMessageOnlyTaskListResult('S10'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user