Skip to content

Commit

Permalink
Fix edit attention test (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Aug 26, 2024
1 parent a69858c commit 96d129e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser_tests/interaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,14 @@ test.describe('Widget Interaction', () => {
})

test('Undo attention edit', async ({ comfyPage }) => {
await comfyPage.setSetting('Comfy.EditAttention.Delta', 0.05)
const textBox = comfyPage.widgetTextBox
await textBox.click()
await textBox.fill('1girl')
await expect(textBox).toHaveValue('1girl')
await textBox.selectText()
await comfyPage.ctrlArrowUp()
await expect(textBox).toHaveValue('(1girl:1.1)')
await expect(textBox).toHaveValue('(1girl:1.05)')
await comfyPage.ctrlZ()
await expect(textBox).toHaveValue('1girl')
})
Expand Down

0 comments on commit 96d129e

Please sign in to comment.