mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
Fix rename open/bookmark workflow (#1507)
* Fix rename open/bookmark workflow * nit * Fix save as * Add browser test
This commit is contained in:
@@ -178,9 +178,8 @@ describe('useWorkflowStore', () => {
|
||||
} as any)
|
||||
|
||||
// Perform rename
|
||||
const newName = 'renamed.json'
|
||||
const newPath = 'workflows/dir/renamed.json'
|
||||
await store.renameWorkflow(workflow, newName)
|
||||
await store.renameWorkflow(workflow, newPath)
|
||||
|
||||
// Check that bookmark was transferred
|
||||
expect(bookmarkStore.isBookmarked(newPath)).toBe(true)
|
||||
|
||||
Reference in New Issue
Block a user