fix: remove legacy tab bar test from WorkflowTabs

Delete test that expected feedback button to be hidden in legacy mode.
Legacy tab bar option no longer exists.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Connor Byrne
2026-05-13 13:45:54 -07:00
parent 6fef9f9382
commit 2447a9282b

View File

@@ -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()
})
})