import { describe, expect, it } from 'vitest' import { mount } from '@vue/test-utils' import { createPinia } from 'pinia' import { createMemoryHistory, createRouter } from 'vue-router' import { defineComponent } from 'vue' import OrganizerLayoutV2 from '@/layouts/OrganizerLayoutV2.vue' import AppShellV2 from '@/layouts/components/AppShellV2.vue' // Stub the 3 leaf shell components: this test verifies COMPOSITION // (right component in right slot + nav data forwarded), not their // internals (those have their own unit tests). Stubs keep jsdom free // of PrimeVue teleport/overlay/breakpoint machinery. const AppSidebarStub = defineComponent({ name: 'AppSidebarStub', props: { groups: { type: Array, default: () => [] } }, template: '