mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 07:19:41 +00:00
17 lines
598 B
TypeScript
17 lines
598 B
TypeScript
import { comfyPageFixture as test } from '../../../../fixtures/comfyPageFixture'
|
|
import { comfyExpect as expect } 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'
|
|
)
|
|
})
|
|
})
|