This commit is contained in:
2026-09-11 16:17:21 +08:00
parent 80a4b3ab5e
commit 737dd41ff1
24 changed files with 202 additions and 229 deletions
@@ -134,7 +134,12 @@ describe('UnifiedOrdersView contract', () => {
for (const uncontractedKey of [
'internalOrderStatus', 'holdCargo', 'companyName', 'pickupMethod', 'associatedFiles', 'createdBy',
]) expect(columnSource).not.toContain(`key: '${uncontractedKey}'`)
expect(columnSource.indexOf("key: 'actions'")).toBeLessThan(columnSource.indexOf("key: 'inboundCode'"))
const actionsColumnIndex = columnSource.indexOf("key: 'actions'")
const selectionColumnIndex = columnSource.indexOf("key: 'selection'")
const inboundCodeColumnIndex = columnSource.indexOf("key: 'inboundCode'")
expect(actionsColumnIndex).toBeGreaterThanOrEqual(0)
expect(selectionColumnIndex).toBeGreaterThan(actionsColumnIndex)
expect(inboundCodeColumnIndex).toBeGreaterThan(selectionColumnIndex)
expect(columnSource).not.toContain("key: 'coLoadGroup'")
expect(columnSource).not.toContain("key: 'orderNo'")
expect(columnSource).toContain("key: 'inboundCode', prop: 'inboundCode', label: '入仓码', minWidth: 160, slotName: 'inboundCode'")