mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '../../../../fixtures/ComfyPage'
|
|
|
|
test.describe('Vue Nodes Canvas Pan', () => {
|
|
test.beforeEach(async ({ comfyPage }) => {
|
|
await comfyPage.setSetting('Comfy.VueNodes.Enabled', true)
|
|
await comfyPage.vueNodes.waitForNodes()
|
|
})
|
|
|
|
test('@mobile Can pan with touch', async ({ comfyPage }) => {
|
|
await comfyPage.panWithTouch({ x: 64, y: 64 }, { x: 256, y: 256 })
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'vue-nodes-paned-with-touch.png'
|
|
)
|
|
})
|
|
})
|