diff --git a/src/components/topbar/WorkflowTabs.test.ts b/src/components/topbar/WorkflowTabs.test.ts index 5914bd9b41..4e9b8108b2 100644 --- a/src/components/topbar/WorkflowTabs.test.ts +++ b/src/components/topbar/WorkflowTabs.test.ts @@ -14,8 +14,6 @@ const distribution = vi.hoisted(() => ({ isNightly: false })) -const tabBarLayout = vi.hoisted(() => ({ value: 'Default' })) - vi.mock('@/platform/distribution/types', () => ({ get isCloud() { return distribution.isCloud @@ -28,13 +26,6 @@ vi.mock('@/platform/distribution/types', () => ({ } })) -vi.mock('@/platform/settings/settingStore', () => ({ - useSettingStore: () => ({ - get: (key: string) => - key === 'Comfy.UI.TabBarLayout' ? tabBarLayout.value : undefined - }) -})) - vi.mock('@/composables/auth/useCurrentUser', () => ({ useCurrentUser: () => ({ isLoggedIn: { value: false } }) })) @@ -134,7 +125,6 @@ describe('WorkflowTabs feedback button', () => { distribution.isCloud = false distribution.isDesktop = false distribution.isNightly = false - tabBarLayout.value = 'Default' openSpy = vi.spyOn(window, 'open').mockReturnValue(null) }) @@ -174,13 +164,4 @@ describe('WorkflowTabs feedback button', () => { screen.queryByRole('button', { name: 'Feedback' }) ).not.toBeInTheDocument() }) - - it('does not render the feedback button when the legacy tab bar is active', () => { - distribution.isCloud = true - tabBarLayout.value = 'Legacy' - renderComponent() - expect( - screen.queryByRole('button', { name: 'Feedback' }) - ).not.toBeInTheDocument() - }) })