This commit is contained in:
2026-09-19 17:02:11 +08:00
parent 4eb17ece4f
commit 514abf6eda
33 changed files with 525 additions and 223 deletions
@@ -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',