Files
ComfyUI_frontend/browser_tests/tests/vueNodes/widgets/load/uploadWidgets.spec.ts
jaeone94 3858432fe6 refactor: error system cleanup — store separation, DDD fix, test improvements
- 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
2026-03-20 19:58:11 +09:00

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