mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
- Extract missingNodesErrorStore from executionErrorStore, remove delegation pattern - Extract useNodeErrorFlagSync composable for node error flag reconciliation - Move getCnrIdFromNode/getCnrIdFromProperties to platform layer (DDD fix) - Add explicit callback cleanup on node removal in useErrorClearingHooks - Fix mock hoisting inconsistency in MissingNodeCard.test.ts - Add data-testid to error groups, image/video error spans - Update E2E tests to use scoped locators and testids Fixes #9875, Fixes #10027, Fixes #10033, Fixes #10085
34 lines
999 B
TypeScript
34 lines
999 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '../../../../fixtures/ComfyPage'
|
|
import { TestIds } from '../../../../fixtures/selectors'
|
|
|
|
test.describe('Vue Upload Widgets', () => {
|
|
test.beforeEach(async ({ comfyPage }) => {
|
|
await comfyPage.settings.setSetting('Comfy.VueNodes.Enabled', true)
|
|
await comfyPage.vueNodes.waitForNodes()
|
|
})
|
|
|
|
test('should hide canvas-only upload buttons', async ({ comfyPage }) => {
|
|
await comfyPage.setup()
|
|
await comfyPage.workflow.loadWorkflow('widgets/all_load_widgets')
|
|
await comfyPage.vueNodes.waitForNodes()
|
|
|
|
await expect(
|
|
comfyPage.page.getByText('choose file to upload', { exact: true })
|
|
).not.toBeVisible()
|
|
|
|
await expect
|
|
.poll(() =>
|
|
comfyPage.page.getByTestId(TestIds.errors.imageLoadError).count()
|
|
)
|
|
.toBeGreaterThan(0)
|
|
await expect
|
|
.poll(() =>
|
|
comfyPage.page.getByTestId(TestIds.errors.videoLoadError).count()
|
|
)
|
|
.toBeGreaterThan(0)
|
|
})
|
|
})
|