import { describe, expect, it } from 'vitest'; import routes from '../routes/external/share'; describe('external share routes', () => { it('keeps workflow sharing outside the management layout', () => { const route = routes.find((item) => item.name === 'WorkflowShare'); expect(route?.path).toBe('/share/workflow'); expect(route?.meta).toMatchObject({ hideInBreadcrumb: true, hideInMenu: true, hideInTab: true, ignoreAccess: true, noBasicLayout: true, }); }); it('provides a standalone workflow share failure page', () => { const route = routes.find((item) => item.name === 'WorkflowShareExpired'); expect(route?.path).toBe('/share/workflow/expired'); expect(route?.meta?.ignoreAccess).toBe(true); expect(route?.meta?.noBasicLayout).toBe(true); }); });