mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 05:19:53 +00:00
* Remove support of Top/Bottom in menu positions * Update menu positions in test setting * nit
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { expect } from '@playwright/test'
|
|
import { comfyPageFixture as test } from './ComfyPage'
|
|
|
|
test.describe('Properties Panel', () => {
|
|
test.beforeEach(async ({ comfyPage }) => {
|
|
await comfyPage.setSetting('Comfy.UseNewMenu', 'Floating')
|
|
})
|
|
|
|
test.afterEach(async ({ comfyPage }) => {
|
|
await comfyPage.setSetting('Comfy.UseNewMenu', 'Disabled')
|
|
})
|
|
|
|
// TODO: Update expectation after new menu dropdown is added.
|
|
test.skip('Can change property value', async ({ comfyPage }) => {
|
|
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')
|
|
})
|
|
})
|