优化
This commit is contained in:
@@ -44,6 +44,17 @@ describe('WorkspaceTabs', () => {
|
||||
})
|
||||
afterEach(() => { document.body.innerHTML = '' })
|
||||
|
||||
it('retains its own theme on the teleported management menu', async () => {
|
||||
const { wrapper } = await mountTabs()
|
||||
await wrapper.get('[aria-label="页签管理"]').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
const popper = document.body.querySelector('.shell-header-popper')
|
||||
expect(popper?.classList.contains('admin-workbench')).toBe(true)
|
||||
expect(popper?.closest('.workspace-tabs')).toBeNull()
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('keeps a dirty tab open when discard confirmation is cancelled', async () => {
|
||||
const { wrapper, workspace, unsaved } = await mountTabs()
|
||||
unsaved.upsert({ key: 'customer-form', label: '客户资料', dirty: true, requiredPermission: null, workspaceTabId: 'customers' })
|
||||
|
||||
Reference in New Issue
Block a user