test: remove flaky NodePreviewCard E2E test

The text-xxxs to text-3xs rename is already validated by Badge
unit tests (twMerge regression), build success, and all other
passing E2E tests. This test was flaky because the first node
in the sampling folder may not always have inputs.
This commit is contained in:
dante01yoon
2026-03-27 23:09:36 +09:00
parent 7be65784f5
commit a4773708fe

View File

@@ -1,27 +0,0 @@
import { expect } from '@playwright/test'
import { comfyPageFixture as test } from '../../fixtures/ComfyPage'
test.describe('Text size token rename regression', { tag: '@ui' }, () => {
test.beforeEach(async ({ comfyPage }) => {
await comfyPage.settings.setSetting('Comfy.UseNewMenu', 'Top')
await comfyPage.settings.setSetting('Comfy.NodeLibrary.NewDesign', false)
const tab = comfyPage.menu.nodeLibraryTab
await tab.open()
})
test('NodePreviewCard renders inputs and outputs on hover', async ({
comfyPage
}) => {
const tab = comfyPage.menu.nodeLibraryTab
await tab.getFolder('sampling').click()
const leaf = tab.nodeLibraryTree.getByTestId('node-tree-leaf').first()
await leaf.hover()
await expect(tab.nodePreview).toBeVisible()
await expect(tab.nodePreview.getByText('Inputs')).toBeVisible()
await expect(tab.nodePreview.getByText('Outputs')).toBeVisible()
})
})