Skip to content

Commit

Permalink
Add test on paste with link
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jan 3, 2025
1 parent 2e7de47 commit 72f0500
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser_tests/copyPaste.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ test.describe('Copy Paste', () => {
await expect(comfyPage.canvas).toHaveScreenshot('copied-node.png')
})

test('Can copy and paste node with link', async ({ comfyPage }) => {
await comfyPage.clickEmptyLatentNode()
await comfyPage.page.mouse.move(10, 10)
await comfyPage.ctrlC()
await comfyPage.page.keyboard.press('Ctrl+Shift+V')
await expect(comfyPage.canvas).toHaveScreenshot('copied-node-with-link.png')
})

test('Can copy and paste text', async ({ comfyPage }) => {
const textBox = comfyPage.widgetTextBox
await textBox.click()
Expand Down

0 comments on commit 72f0500

Please sign in to comment.