Skip to content

Commit 1215cb4

Browse files
christian-byrnegithub-actions
andauthored
[test] add test to verify panning on touch devices works as expected with Vue renderer (#5833)
## Summary Added mobile touch pan interaction test for Vue nodes canvas functionality. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5833-test-add-test-to-verify-panning-on-touch-devices-works-as-expected-with-Vue-renderer-27c6d73d3650810ebe01c0f7711670b9) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]>
1 parent a307051 commit 1215cb4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import {
2+
comfyExpect as expect,
3+
comfyPageFixture as test
4+
} from '../../../../fixtures/ComfyPage'
5+
6+
test.describe('Vue Nodes Canvas Pan', () => {
7+
test.beforeEach(async ({ comfyPage }) => {
8+
await comfyPage.setSetting('Comfy.VueNodes.Enabled', true)
9+
await comfyPage.vueNodes.waitForNodes()
10+
})
11+
12+
test('@mobile Can pan with touch', async ({ comfyPage }) => {
13+
await comfyPage.panWithTouch({ x: 64, y: 64 }, { x: 256, y: 256 })
14+
await expect(comfyPage.canvas).toHaveScreenshot(
15+
'vue-nodes-paned-with-touch.png'
16+
)
17+
})
18+
})
10.3 KB
Loading

0 commit comments

Comments
 (0)