feat(consignment): 未售出时长支持一位小数,改价上限按当前模板价实时计算
This commit is contained in:
@@ -115,3 +115,12 @@ test('打手端:动态规格 + 系统建议价 + 改价不得高于建议价',
|
||||
assert.ok(page.includes('specValues'), '发布必须提交动态规格值')
|
||||
assert.ok(page.includes('config.pricing.allowWorkerPrice'), '改价能力必须按配置')
|
||||
})
|
||||
|
||||
test('寄卖配置:未售出时长支持一位小数', () => {
|
||||
const panel = read('../src/pages/admin/panels/ConsignmentConfigPanel.tsx')
|
||||
const start = panel.indexOf("name={['priceDrop', 'hours']}")
|
||||
assert.ok(start > 0, '必须存在未售出时长配置')
|
||||
const block = panel.slice(start, panel.indexOf('</Form.Item>', start))
|
||||
assert.ok(block.includes('precision={1}'), '未售出时长必须支持一位小数')
|
||||
assert.ok(block.includes('min={0.1}'), '未售出时长下限应为 0.1 小时')
|
||||
})
|
||||
|
||||
@@ -115,4 +115,6 @@ test('打手端价格按单价展示并给出合计,避免把单价误读成
|
||||
page.includes('最高不能超过系统建议单价'),
|
||||
'改价上限提示必须按单价口径,不能再说成整单建议价',
|
||||
)
|
||||
assert.ok(page.includes('按当前模板价实时计算'), '改价上限必须标明按当前模板价实时计算')
|
||||
assert.ok(page.includes('高于最新模板价'), '当前售价高于模板价时必须提示先下调')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user