mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
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:
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user