[fix] use relative import path in subgraph browser tests

This commit is contained in:
bymyself
2025-07-15 15:00:27 -07:00
parent 3ce6bbd567
commit 560c15dd6f
3 changed files with 5 additions and 4 deletions

View File

@@ -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)
})
})
})

View File

@@ -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)
}

View File

@@ -139,4 +139,4 @@ describe('useNodeDefStore', () => {
expect(store.nodeDefsByDisplayName['New Display Name']).toBeDefined()
})
})
})
})