feat: delete multiple non empty folders
This commit is contained in:
Binary file not shown.
@@ -136,6 +136,7 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('id="batch-move-popup"', body)
|
||||
self.assertIn('id="batch-move-apply-btn"', body)
|
||||
self.assertIn('id="delete-confirm-modal"', body)
|
||||
self.assertIn('id="delete-confirm-message"', body)
|
||||
self.assertIn('id="delete-confirm-apply-btn"', body)
|
||||
self.assertIn('id="delete-confirm-cancel-btn"', body)
|
||||
self.assertIn("Delete folder and contents?", body)
|
||||
@@ -206,8 +207,10 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('function toggleUploadMenu()', app_js)
|
||||
self.assertNotIn('if (event.altKey) {', app_js)
|
||||
self.assertIn('document.getElementById("settings-btn").onclick = () => openSettings("general");', app_js)
|
||||
self.assertIn('err.code === "directory_not_empty"', app_js)
|
||||
self.assertIn('openDeleteConfirmModal(item.path);', app_js)
|
||||
self.assertIn('function collectDeleteRecursivePaths(selectedItems)', app_js)
|
||||
self.assertIn('openDeleteConfirmModal(pane, selectedItems, recursivePaths);', app_js)
|
||||
self.assertIn('recursivePaths.has(item.path)', app_js)
|
||||
self.assertIn('Delete selected items and folder contents?', app_js)
|
||||
self.assertIn('async function loadSettings()', app_js)
|
||||
self.assertIn('await loadSettings();', app_js)
|
||||
self.assertIn('settings.showThumbnailsInput.onchange = handleShowThumbnailsChange;', app_js)
|
||||
@@ -239,10 +242,10 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('async function executeFolderUploadPlan(plan)', app_js)
|
||||
self.assertIn('async function handleFolderSelection(event)', app_js)
|
||||
self.assertIn('function deleteConfirmElements()', app_js)
|
||||
self.assertIn('function openDeleteConfirmModal(path)', app_js)
|
||||
self.assertIn('function openDeleteConfirmModal(pane, items, recursivePaths)', app_js)
|
||||
self.assertIn('async function executeDeleteItems(pane, items, recursivePaths)', app_js)
|
||||
self.assertIn('async function submitDeleteConfirmModal()', app_js)
|
||||
self.assertIn('recursive: true', app_js)
|
||||
self.assertIn('err.code === "directory_not_empty"', app_js)
|
||||
self.assertIn('recursive: recursivePaths.has(item.path)', app_js)
|
||||
self.assertIn('input.setAttribute("webkitdirectory", "")', app_js)
|
||||
self.assertIn('await apiRequest("POST", "/api/files/mkdir", {', app_js)
|
||||
self.assertIn('await uploadFileRequest(targetPath, entry.file, overwrite);', app_js)
|
||||
|
||||
Reference in New Issue
Block a user