test: remove flaky SearchFilterChip E2E test

The filter chip add/remove behavior is already covered by
nodeSearchBox.spec.ts which tests removeFilter in the same
v1 (legacy) search box context.
This commit is contained in:
dante01yoon
2026-03-28 10:14:49 +09:00
parent 4e900813ea
commit 1407490f3b

View File

@@ -1,49 +0,0 @@
import { expect } from '@playwright/test'
import { comfyPageFixture as test } from '../fixtures/ComfyPage'
test.describe('Badge migration', { tag: '@ui' }, () => {
test.describe('SearchFilterChip', () => {
test.beforeEach(async ({ comfyPage }) => {
await comfyPage.settings.setSetting(
'Comfy.NodeSearchBoxImpl',
'v1 (legacy)'
)
await comfyPage.toast.closeToasts()
})
test('Filter chip remove button removes the chip', async ({
comfyPage
}) => {
await comfyPage.canvasOps.doubleClick()
await expect(comfyPage.searchBox.input).toBeVisible()
await comfyPage.searchBox.addFilter('MODEL', 'Input Type')
await expect(comfyPage.searchBox.filterChips).toHaveCount(1)
await comfyPage.searchBox.removeFilter(0)
await expect(comfyPage.searchBox.filterChips).toHaveCount(0)
})
})
test.describe('Node library tree badge', () => {
test('Folder shows node count badge', async ({ comfyPage }) => {
await comfyPage.toast.closeToasts()
const sidebarButton = comfyPage.page.getByRole('button', {
name: 'Node Library'
})
await sidebarButton.click()
const sidebar = comfyPage.page.getByRole('complementary', {
name: 'Sidebar'
})
await sidebar
.getByRole('treeitem')
.first()
.waitFor({ state: 'visible', timeout: 10000 })
const badges = sidebar.locator('[data-testid="node-tree-folder"] span')
await expect(badges.first()).toBeVisible()
})
})
})