优化
This commit is contained in:
@@ -294,19 +294,29 @@ describe('InboundOrdersView', () => {
|
||||
const columnSource = source.slice(source.indexOf('const columns:'))
|
||||
const operation = columnSource.indexOf("key: 'actions'")
|
||||
const inboundCode = columnSource.indexOf("key: 'inboundCode'")
|
||||
const processStatus = columnSource.indexOf("key: 'processStatus'")
|
||||
const orderStatus = columnSource.indexOf("key: 'orderStatus'")
|
||||
const measureReview = columnSource.indexOf("key: 'measureReviewStatus'")
|
||||
const feeStatus = columnSource.indexOf("key: 'feeStatus'")
|
||||
const feeReviewStatus = columnSource.indexOf("key: 'feeReviewStatus'")
|
||||
const customer = columnSource.indexOf("key: 'customerName'")
|
||||
const warehouse = columnSource.indexOf("key: 'warehouseName'")
|
||||
expect(operation).toBeGreaterThan(-1)
|
||||
expect(operation).toBeLessThan(inboundCode)
|
||||
expect(inboundCode).toBeLessThan(orderStatus)
|
||||
expect(inboundCode).toBeLessThan(processStatus)
|
||||
expect(processStatus).toBeLessThan(orderStatus)
|
||||
expect(orderStatus).toBeLessThan(measureReview)
|
||||
expect(measureReview).toBeLessThan(feeStatus)
|
||||
expect(feeStatus).toBeLessThan(customer)
|
||||
expect(feeStatus).toBeLessThan(feeReviewStatus)
|
||||
expect(feeReviewStatus).toBeLessThan(customer)
|
||||
expect(customer).toBeLessThan(warehouse)
|
||||
expect(columnSource).toContain("fixed: 'left'")
|
||||
expect(columnSource).toContain("{ key: 'processStatus', label: '入库流程状态'")
|
||||
expect(columnSource).toContain("{ key: 'orderStatus', label: '订单状态'")
|
||||
expect(columnSource).toContain("{ key: 'feeStatus', label: '费用状态'")
|
||||
expect(columnSource).toContain("{ key: 'feeReviewStatus', label: '费用审核状态'")
|
||||
expect(source).toContain('<template #processStatus="{ row }">')
|
||||
expect(source).toContain('<template #feeReviewStatus="{ row }">')
|
||||
expect(toolbarSource).toMatch(/@media \(max-width: 720px\)[\s\S]*width: 100%/)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user