From fa201206bb5725d74169d31991ba2cae567c3367 Mon Sep 17 00:00:00 2001 From: Peter Ringelmann Date: Thu, 7 May 2026 12:39:54 +0200 Subject: [PATCH] fix: unit test -e Signed-off-by: Peter Ringelmann --- core/src/tests/components/AppMenu.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/tests/components/AppMenu.spec.ts b/core/src/tests/components/AppMenu.spec.ts index 859300b2df3..bfacb5538b1 100644 --- a/core/src/tests/components/AppMenu.spec.ts +++ b/core/src/tests/components/AppMenu.spec.ts @@ -109,14 +109,14 @@ async function openPopover(wrapper: ReturnType) { } describe('core: AppMenu', () => { - it('renders one AppItem per app in the list', async () => { + it('renders one AppItem per app in the list, plus the "App store" tile for non-admins', async () => { const wrapper = mount(AppMenu, { attachTo: document.body }) await openPopover(wrapper) const items = document.querySelectorAll('[role="menuitem"]') - expect(items).toHaveLength(3) + expect(items).toHaveLength(4) const labels = Array.from(items).map((el) => el.querySelector('.app-item__label')?.textContent?.trim() ?? '') - expect(labels).toEqual(['Files', 'Mail', 'Calendar']) + expect(labels).toEqual(['Files', 'Mail', 'Calendar', 'App store']) }) it('renders the "More apps" tile when the current user is an admin', async () => {