mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
## Summary Simplifies test setup for common settings ## Changes - **What**: - add vue-nodes tag to auto enable nodes 2.0 - remove UseNewMenu Top as this is default ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-11184-test-Simplify-vue-node-menu-test-setup-3416d73d3650815487e0c357d28761fe) by [Unito](https://www.unito.io)
29 lines
836 B
TypeScript
29 lines
836 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.setup()
|
|
await comfyPage.workflow.loadWorkflow('widgets/all_load_widgets')
|
|
await comfyPage.vueNodes.waitForNodes()
|
|
|
|
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)
|
|
})
|
|
})
|