mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
## Summary More simplification ## Changes - **What**: - Remove more UseNewMenu settings calls - Remove `await comfyPage.setup()` - Remove `waitForNodes` in vue node tagged tests ┆Issue is synchronized with this [Notion page](https://app.notion.com/p/PR-11237-test-Remove-unnecessary-setup-UseNewMenu-and-waitForNodes-calls-3426d73d36508198a100c218420d479c) by [Unito](https://www.unito.io)
27 lines
764 B
TypeScript
27 lines
764 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '@e2e/fixtures/ComfyPage'
|
|
import { TestIds } from '@e2e/fixtures/selectors'
|
|
|
|
test.describe('Vue Upload Widgets', { tag: '@vue-nodes' }, () => {
|
|
test('should hide canvas-only upload buttons', async ({ comfyPage }) => {
|
|
await comfyPage.workflow.loadWorkflow('widgets/all_load_widgets')
|
|
|
|
await expect(
|
|
comfyPage.page.getByText('choose file to upload', { exact: true })
|
|
).toBeHidden()
|
|
|
|
await expect
|
|
.poll(() =>
|
|
comfyPage.page.getByTestId(TestIds.errors.imageLoadError).count()
|
|
)
|
|
.toBeGreaterThan(0)
|
|
await expect
|
|
.poll(() =>
|
|
comfyPage.page.getByTestId(TestIds.errors.videoLoadError).count()
|
|
)
|
|
.toBeGreaterThan(0)
|
|
})
|
|
})
|