Skip to content

Commit

Permalink
Keyboard event on canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Sep 5, 2024
1 parent 837a2bb commit 9a4a547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser_tests/interaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ test.describe('Node Interaction', () => {

test('Can pin/unpin nodes with keyboard shortcut', async ({ comfyPage }) => {
await comfyPage.select2Nodes()
await comfyPage.page.keyboard.press('KeyP')
await comfyPage.canvas.press('KeyP')
await comfyPage.nextFrame()
await expect(comfyPage.canvas).toHaveScreenshot('nodes-pinned.png')
await comfyPage.page.keyboard.press('KeyP')
await comfyPage.canvas.press('KeyP')
await comfyPage.nextFrame()
await expect(comfyPage.canvas).toHaveScreenshot('nodes-unpinned.png')
})
Expand Down

0 comments on commit 9a4a547

Please sign in to comment.