test: detect shared overflow evidence
This commit is contained in:
@@ -109,7 +109,8 @@ export function inspectScenarioReport(scenario, report, exitCode = 0) {
|
||||
expectedGuideShape: guideEvidenceMatched,
|
||||
}
|
||||
const passed = Object.values(assertions).every(Boolean)
|
||||
const overflowStep = steps.find((step) => String(step.name || '').includes('A0共享溢出位状态可见'))
|
||||
const sharedOverflowObserved = steps.some((step) =>
|
||||
/sharedOverflow=true/.test(String(step.evidence || '')))
|
||||
return {
|
||||
name: scenario.name,
|
||||
description: scenario.description,
|
||||
@@ -126,7 +127,7 @@ export function inspectScenarioReport(scenario, report, exitCode = 0) {
|
||||
locationId: guide.locationId || null,
|
||||
palletCount: measurement.palletCount ?? null,
|
||||
processStatus: measurement.processStatus || null,
|
||||
sharedOverflowObserved: /sharedOverflow=true/.test(String(overflowStep?.evidence || '')),
|
||||
sharedOverflowObserved,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user