mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 16:29:45 +00:00
Amp-Thread-ID: https://ampcode.com/threads/T-019cbfdf-bf82-76de-b36c-91758530a0ce Co-authored-by: Amp <amp@ampcode.com>
29 lines
892 B
TypeScript
29 lines
892 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '../../../../fixtures/ComfyPage'
|
|
|
|
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.getByText('Error loading image').count())
|
|
.toBeGreaterThan(0)
|
|
await expect
|
|
.poll(() => comfyPage.page.getByText('Error loading video').count())
|
|
.toBeGreaterThan(0)
|
|
})
|
|
})
|