fix: refresh cached inbound task lists
This commit is contained in:
@@ -17,4 +17,14 @@ describe('InboundTaskList measurement scope', () => {
|
||||
expect(source).toContain("access.can('platform:firstleg:inbound:view') && (row as InboundOrderSummary).orderId")
|
||||
expect(source).not.toContain("name: 'inbound-order-detail', params: { inboundId: row.id }")
|
||||
})
|
||||
|
||||
it('refreshes cached task lists when users return from measurement work', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
expect(source).toContain('onActivated(() => {')
|
||||
expect(source).toContain('if (!activatedOnce)')
|
||||
expect(source).toContain('activatedOnce = true')
|
||||
expect(source).toContain('void loadTasks()')
|
||||
expect(source).toContain('onMounted(() => { void loadOptions(); void loadTasks() })')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user