This commit is contained in:
2026-10-20 23:34:11 +08:00
parent f155976f52
commit 13e4aa56ec
321 changed files with 6756 additions and 2110 deletions
+11
View File
@@ -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' })