This commit is contained in:
2026-09-21 11:17:13 +08:00
parent bdb42f1256
commit befd22af96
5 changed files with 67 additions and 13 deletions
@@ -20,9 +20,11 @@ test('protects every overseas warehouse page with its independent list permissio
test('opens labeling and return relabeling on dedicated protected create pages', () => {
assert.match(routes, /path: 'overseas-warehouse\/labeling\/create'[\s\S]*?props: \{ service: 'labeling', createPage: true \}[\s\S]*?permission: 'merchant:overseas-warehouse:relabel:create'/)
assert.match(routes, /path: 'overseas-warehouse\/return-relabel\/create'[\s\S]*?props: \{ service: 'relabel', createPage: true \}[\s\S]*?permission: 'merchant:overseas-warehouse:return-order:create'/)
assert.match(routes, /path: 'overseas-warehouse\/return-relabel\/create'[\s\S]*?ReturnOrdersView\.vue'[\s\S]*?props: \{ createPage: true \}[\s\S]*?title: '新建退货预报'[\s\S]*?permission: 'merchant:overseas-warehouse:return-order:create'/)
assert.match(services, /props\.createPage \? 'create' : 'list'/)
assert.match(services, /function returnToList\(\)/)
assert.match(returns, /props\.createPage/)
assert.match(returns, /class="return-create-surface"/)
})
test('opens warehouse service and return receipt details as dedicated protected workspace pages', () => {