Fix mode switch

This commit is contained in:
huchenlei
2025-08-09 21:42:10 -04:00
parent a4d7b4dd55
commit 34b7fe14c4
2 changed files with 19 additions and 6 deletions

View File

@@ -118,18 +118,15 @@ test.describe('Command search box', () => {
expect(nodesAfter).toBe(0)
})
test.skip('Returns to node search when removing ">"', async ({
comfyPage
}) => {
test('Returns to node search when removing ">"', async ({ comfyPage }) => {
await comfyPage.doubleClickCanvas()
// Enter command mode
await comfyPage.searchBox.input.fill('>')
await expect(comfyPage.page.locator('.filter-button')).not.toBeVisible()
// Return to node search by clearing input and triggering search
await comfyPage.searchBox.input.clear()
await comfyPage.searchBox.input.press('Backspace') // Trigger search event
// Return to node search by filling with empty string to trigger search
await comfyPage.searchBox.input.fill('')
// Small wait for UI update
await comfyPage.page.waitForTimeout(200)