优化
This commit is contained in:
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user