Fix rename open/bookmark workflow (#1507)

* Fix rename open/bookmark workflow

* nit

* Fix save as

* Add browser test
This commit is contained in:
Chenlei Hu
2024-11-11 11:06:41 -05:00
committed by GitHub
parent a55833b3a6
commit 73bdbddf90
6 changed files with 121 additions and 59 deletions

View File

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