优化
This commit is contained in:
@@ -57,6 +57,14 @@ test('keeps overseas warehouse writes behind operation-specific button permissio
|
||||
assert.match(returns, /v-if="canCreate" type="primary" @click="openCreate"/)
|
||||
})
|
||||
|
||||
test('keeps all four overseas warehouse create buttons in the shared left-aligned table toolbar', () => {
|
||||
for (const service of ['labeling', 'transfer', 'disposal']) {
|
||||
assert.match(routes, new RegExp(`props: \\{ service: '${service}' \\}`))
|
||||
}
|
||||
assert.match(services, /<DataTable[\s\S]*?<template #toolbar-actions><el-button v-if="canCreate"/)
|
||||
assert.match(returns, /<DataTable[\s\S]*?<template #toolbar-actions><el-button v-if="canCreate"/)
|
||||
})
|
||||
|
||||
test('publishes all overseas operation permissions in the enterprise role editor', () => {
|
||||
for (const permission of [
|
||||
'merchant:overseas-warehouse:last-mile-order:list',
|
||||
|
||||
Reference in New Issue
Block a user