mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 13:10:24 +00:00
[fix] use relative import path in subgraph browser tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { expect } from '@playwright/test'
|
||||
import { comfyPageFixture as test } from '@/browser_tests/fixtures/ComfyPage'
|
||||
|
||||
import { comfyPageFixture as test } from '../fixtures/ComfyPage'
|
||||
|
||||
test.describe('Subgraph Persistence', () => {
|
||||
test('Node library updates when subgraph title changes', async ({
|
||||
@@ -51,4 +52,4 @@ test.describe('Subgraph Persistence', () => {
|
||||
// Verify the old node name is no longer in the library
|
||||
expect(await tab.getNode('Subgraph Node').count()).toBe(0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -50,7 +50,7 @@ const onEdit = (newValue: string) => {
|
||||
const target = titleEditorStore.titleEditorTarget
|
||||
if (target instanceof LGraphNode && target.isSubgraphNode?.()) {
|
||||
target.subgraph.name = trimmedTitle
|
||||
|
||||
|
||||
// Also update the node definition display name in the store
|
||||
nodeDefStore.updateNodeDefDisplayName(target.type, trimmedTitle)
|
||||
}
|
||||
|
||||
@@ -139,4 +139,4 @@ describe('useNodeDefStore', () => {
|
||||
expect(store.nodeDefsByDisplayName['New Display Name']).toBeDefined()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user