Maintenance: Desktop view - Remove navigation group testing file and add keep.

Approved-by: Florian Liebe <fl@zammad.com>

Co-authored-by: Florian Liebe <fl@zammad.com>
This commit is contained in:
Dominik Klein
2026-08-12 15:44:17 +02:00
parent 414cfb71f2
commit b4c10653bc
3 changed files with 1 additions and 26 deletions

View File

@@ -1,9 +1,6 @@
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
import {
navigationGroups,
type NavigationGroup,
} from '#desktop/components/PageNavigation/navigationGroups.ts'
import type { NavigationGroup } from '#desktop/components/PageNavigation/navigationGroups.ts'
import {
buildNavigationItems,
type PageRoute,
@@ -24,14 +21,6 @@ const buildRoute = (name: string, order?: number, navigationGroup?: string): Pag
const tools: NavigationGroup = { key: 'tools', title: 'Tools', icon: 'wrench', order: 9000 }
describe('navigationGroups', () => {
it('ships the shared "tools" group so addons do not have to define it', () => {
expect(navigationGroups).toContainEqual(
expect.objectContaining({ key: 'tools', title: 'Tools' }),
)
})
})
describe('buildNavigationItems', () => {
it('combines routes of independent contributors into one group', () => {
const items = buildNavigationItems(

View File

@@ -1,14 +0,0 @@
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
import type { NavigationGroup } from '#desktop/components/PageNavigation/navigationGroups.ts'
// Counterpart of the legacy `#tools` navigation bar parent, which addons like
// TimeTracking and ProjectBaller nest their entries under.
const group: NavigationGroup = {
key: 'tools',
title: __('Tools'),
icon: 'wrench',
order: 90000,
}
export default group