mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 17:30:07 +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)
21 lines
489 B
TypeScript
21 lines
489 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '@e2e/fixtures/ComfyPage'
|
|
|
|
test.describe('Vue Nodes Canvas Pan', { tag: '@vue-nodes' }, () => {
|
|
test(
|
|
'@mobile Can pan with touch',
|
|
{ tag: '@screenshot' },
|
|
async ({ comfyPage }) => {
|
|
await comfyPage.canvasOps.panWithTouch(
|
|
{ x: 64, y: 64 },
|
|
{ x: 256, y: 256 }
|
|
)
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'vue-nodes-paned-with-touch.png'
|
|
)
|
|
}
|
|
)
|
|
})
|