显示 Debug EML 菜单入口

This commit is contained in:
andy committed 2026-07-09 17:07:33 +08:00
1 parent 7100612442
commit b785e0e429
7 files changed
+24 -1

No files matched your search

@@ -40,6 +40,11 @@ async function mountShell() {
component: { template: '<div />' },
meta: { titleKey: 'nav.taskQueue' },
},
{
path: '/debug/eml-superagent',
component: { template: '<div />' },
meta: { titleKey: 'debugEml.title' },
},
],
})
await router.push('/reservation/orders')
@@ -67,4 +72,13 @@ describe('ReservationAppShell', () => {
await wrapper.findAll('button').find((button) => button.text() === 'EN')?.trigger('click')
expect(wrapper.text()).toContain('Order list')
})
it('shows the Debug EML navigation entry before menu management takes over permissions', async () => {
const wrapper = await mountShell()
const debugLink = wrapper.find('a[href="/debug/eml-superagent"]')
expect(debugLink.exists()).toBe(true)
expect(debugLink.text()).toContain('Debug EML')
})
})