This commit is contained in:
2026-10-30 18:15:26 +08:00
parent 09a766c2c8
commit 51d0877a45
3 changed files with 7 additions and 9 deletions
@@ -52,12 +52,10 @@ describe('transport document entry', () => {
expect(routing.push).toHaveBeenCalledWith({ name: 'overseas-business-looseboard-detail', params: { orderId: 'LB-TEST' }, query: { customerId: '9007199254741999' } })
})
it('preserves the permitted looseboard edit entry alongside its detail', async () => {
it('does not expose looseboard editing from the list even when permission exists', async () => {
const wrapper = mountList('looseboard', true); await flushPromises()
const actions = wrapper.findComponent(RowActions)
expect(actions.text()).toContain('编辑')
actions.vm.$emit('action', 'edit'); await flushPromises()
expect(routing.push).toHaveBeenCalledWith({ name: 'overseas-business-looseboard-edit', params: { orderId: 'LB-TEST' }, query: { customerId: '9007199254741999' } })
expect(actions.text()).not.toContain('编辑')
})
it('keeps truck mode on its own list API', async () => {