test: complete phase3 phase4 acceptance coverage
This commit is contained in:
@@ -40,8 +40,7 @@ test('入库通过真实订单测量链保留测量态并最终进入 WAIT_SPLIT
|
||||
assert.match(source, new RegExp(`'${status}'`))
|
||||
}
|
||||
assert.match(source, /\.\/inbound-measurement\.mjs/)
|
||||
assert.match(source, /入库列表保留 MEASURE_REJECTED/)
|
||||
assert.match(source, /稳定 Admin 契约未开放 measurements\/reject/)
|
||||
assert.doesNotMatch(source, /recordCoverageGap|addCoverageGap/)
|
||||
})
|
||||
|
||||
test('FBA 状态样本为订单头和每条货物行提供四个必填标识', () => {
|
||||
@@ -63,26 +62,23 @@ test('测量状态截停发生在正确的 HTTP 边界', () => {
|
||||
assert.doesNotMatch(source, /target === 'MEASURE_REJECTED' && isSubmit/)
|
||||
})
|
||||
|
||||
test('入库不可独立保留状态显式阻断', () => {
|
||||
test('入库模块只声明状态全集且不在后续专项生成前预写失败步骤', () => {
|
||||
for (const status of ['WAIT_PRICING', 'FEE_CONFIRMING', 'INBOUNDING', 'VOIDED']) {
|
||||
assert.match(source, new RegExp(`${status}:`))
|
||||
assert.match(source, new RegExp(`'${status}'`))
|
||||
}
|
||||
assert.match(source, /AutomaticInboundCompletionService 在同一调用内立即从 INBOUNDING 推进 WAIT_SPLIT/)
|
||||
assert.match(source, /processStatus=WAIT_SPLIT/)
|
||||
assert.match(source, /查询存量 WAIT_SPLIT 样本/)
|
||||
assert.match(source, /没有作废入库单 API/)
|
||||
assert.match(source, /recordCoverageGap\(context, `入库列表保留 \$\{status\}`/)
|
||||
assert.match(source, /context\.addCoverageGap\?\./)
|
||||
assert.doesNotMatch(source, /覆盖阻断|fixture-unavailable|recordCoverageGap|addCoverageGap/)
|
||||
})
|
||||
|
||||
test('统一订单声明合法可达状态并显式阻断废弃或无 API 状态', () => {
|
||||
test('统一订单声明完整状态集合并由总矩阵统一冻结不可达状态', () => {
|
||||
assert.match(source, /result\.unifiedOrders\.PENDING_REVIEW/)
|
||||
assert.match(source, /result\.unifiedOrders\.WAIT_MEASURE/)
|
||||
for (const status of ['WAIT_SPLIT', 'LOADING', 'LOADED', 'DELIVERED']) {
|
||||
assert.match(source, new RegExp(`'${status}'`))
|
||||
}
|
||||
assert.doesNotMatch(source, /WAIT_SPLIT 标记为历史废弃状态/)
|
||||
assert.match(source, /没有完成派送并写 DELIVERED 的公开业务 API/)
|
||||
assert.doesNotMatch(source, /没有完成派送并写 DELIVERED/)
|
||||
})
|
||||
|
||||
test('按总门禁格式写入 matrix.pages 的 requiredStatuses 和 fixtures', () => {
|
||||
|
||||
Reference in New Issue
Block a user