mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 09:19:43 +00:00
fix: revert selectNodes changes and fix test assertions
Amp-Thread-ID: https://ampcode.com/threads/T-019c17a0-1d8c-746f-8ee0-0145b7f56561
This commit is contained in:
@@ -12,16 +12,16 @@ test.describe('Properties panel', () => {
|
||||
|
||||
await comfyPage.selectNodes(['KSampler', 'VAE Decode'])
|
||||
|
||||
await expect(propertiesPanel.panelTitle).toContainText('3 items selected')
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toHaveCount(1)
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).toHaveCount(2)
|
||||
await expect(propertiesPanel.panelTitle).toContainText('2 items selected')
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toBeVisible()
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).toBeVisible()
|
||||
|
||||
await propertiesPanel.searchBox.fill('seed')
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toHaveCount(1)
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).toHaveCount(0)
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toBeVisible()
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).not.toBeVisible()
|
||||
|
||||
await propertiesPanel.searchBox.fill('')
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toHaveCount(1)
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).toHaveCount(2)
|
||||
await expect(propertiesPanel.root.getByText('KSampler')).toBeVisible()
|
||||
await expect(propertiesPanel.root.getByText('VAE Decode')).toBeVisible()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user