fix: complete container and overseas fee contracts
This commit is contained in:
@@ -29,17 +29,17 @@ describe('OutboundsView permissions and navigation', () => {
|
||||
const wrapper = mount(OutboundsView, { global: { plugins: [ElementPlus] } })
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('详情')
|
||||
expect(wrapper.text()).not.toContain('一件代发出库')
|
||||
expect(wrapper.text()).not.toContain('新建出库单')
|
||||
expect(wrapper.text()).not.toContain('取消')
|
||||
expect(OutboundsView.__file).toContain('OutboundsView.vue')
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('shows one-click creation and cancellation only with their exact permissions', async () => {
|
||||
it('shows outbound creation and cancellation only with their exact permissions', async () => {
|
||||
canPermission.mockImplementation((code: string) => ['platform:overseas-warehouse:outbound:create', 'platform:overseas-warehouse:outbound:cancel'].includes(code))
|
||||
const wrapper = mount(OutboundsView, { global: { plugins: [ElementPlus] } })
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('一件代发出库')
|
||||
expect(wrapper.text()).toContain('新建出库单')
|
||||
expect(wrapper.text()).toContain('取消')
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user