Optimize local folder file tree lazy loading
This commit is contained in:
@@ -997,6 +997,15 @@ mod tests {
|
||||
assert!(!SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("rowId === 'index:' + activeId"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sidebar_filetree_runtime_supports_lazy_children_projection() {
|
||||
assert!(SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("/api/tree/projections/file/children"));
|
||||
assert!(SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("parentRelativePath"));
|
||||
assert!(SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("data-filetree-children-loaded"));
|
||||
assert!(SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("fileTreeLazyChildrenCache"));
|
||||
assert!(SIDEBAR_TREE_LIVE_APPLY_RUNTIME_JS.contains("fileTreeExpandedRelativePaths"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sidebar_tree_delete_to_trash_dispatches_archive_not_purge() {
|
||||
let delete_trash_start = SIDEBAR_FILETREE_COMMAND_RUNTIME_JS
|
||||
|
||||
Reference in New Issue
Block a user