修复(履约渠道): 收敛管道事件避免待办自动刷新
This commit is contained in:
@@ -26,6 +26,12 @@ test('履约管道状态由后台 SSE 失效刷新,不再 30 秒轮询', () =>
|
||||
assert.match(page, /SSE\s+自动刷新/)
|
||||
assert.ok(layout.includes("event.type === 'fulfillment_pipeline.changed'"))
|
||||
assert.ok(layout.includes("queryKey: ['fulfillment-pipelines']"))
|
||||
const pipelineRealtimeBlock = layout.slice(
|
||||
layout.indexOf("event.type === 'fulfillment_pipeline.changed'"),
|
||||
layout.indexOf("event.type === 'work_order.changed'"),
|
||||
)
|
||||
assert.ok(!pipelineRealtimeBlock.includes("queryKey: ['fulfillment-pending']"))
|
||||
assert.ok(page.includes('loading={query.isLoading}'))
|
||||
})
|
||||
|
||||
test('公共订单 SSE 允许匿名连接且只携带重读信号', () => {
|
||||
|
||||
Reference in New Issue
Block a user