mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-30 12:59:55 +00:00
* Fix hotkeys triggering while editing properties panel values (#606) * Add properties panel inputs to key handler ignore * Add properties panel test * Update test expectations [skip ci] --------- Co-authored-by: bymyself <abolkonsky.rem@gmail.com> Co-authored-by: github-actions <github-actions@github.com>
25 lines
960 B
TypeScript
25 lines
960 B
TypeScript
import { expect } from '@playwright/test'
|
|
import { comfyPageFixture as test } from './ComfyPage'
|
|
|
|
test.describe('Properties Panel', () => {
|
|
test('Can change property value', async ({ comfyPage }) => {
|
|
await comfyPage.setSetting('Comfy.UseNewMenu', 'Top')
|
|
await comfyPage.rightClickEmptyLatentNode()
|
|
await comfyPage.page.getByText('Properties Panel').click()
|
|
await comfyPage.nextFrame()
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'right-click-node-properties-panel.png'
|
|
)
|
|
const propertyInput = comfyPage.page.locator('span.property_value').first()
|
|
|
|
// Ensure no keybinds are triggered while typing
|
|
await propertyInput.pressSequentially('abcdefghijklmnopqrstuvwxyz')
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'right-click-node-properties-panel-property-changed.png'
|
|
)
|
|
|
|
await propertyInput.fill('Empty Latent Image')
|
|
await comfyPage.setSetting('Comfy.UseNewMenu', 'Disabled')
|
|
})
|
|
})
|