feat: contextmenu eigenschappen toegevoegd

This commit is contained in:
kodi
2026-03-14 11:11:03 +01:00
parent d08ca24c87
commit 73c539ba4a
4 changed files with 44 additions and 5 deletions
@@ -75,6 +75,7 @@ class UiSmokeGoldenTest(unittest.TestCase):
self.assertIn('id="context-menu-copy-btn"', body)
self.assertIn('id="context-menu-move-btn"', body)
self.assertIn('id="context-menu-delete-btn"', body)
self.assertIn('id="context-menu-properties-btn"', body)
self.assertIn('id="settings-btn"', body)
self.assertIn('id="rename-btn"', body)
self.assertIn('id="view-btn"', body)
@@ -215,6 +216,7 @@ class UiSmokeGoldenTest(unittest.TestCase):
self.assertIn('function startContextMenuCopy()', app_js)
self.assertIn('function startContextMenuMove()', app_js)
self.assertIn('function startContextMenuDelete()', app_js)
self.assertIn('function startContextMenuProperties()', app_js)
self.assertIn('selectedPathsSet.has(entry.path)', app_js)
self.assertIn('entry.isParent', app_js)
self.assertIn('row.oncontextmenu = (event) => {', app_js)
@@ -225,10 +227,18 @@ class UiSmokeGoldenTest(unittest.TestCase):
self.assertIn('elements.copyButton.classList.remove("hidden");', app_js)
self.assertIn('elements.copyButton.disabled = items.length === 0;', app_js)
self.assertIn('elements.moveButton.classList.remove("hidden");', app_js)
self.assertIn('elements.propertiesButton.classList.remove("hidden");', app_js)
self.assertIn('elements.propertiesButton.disabled = items.length === 0;', app_js)
self.assertIn('openRenamePopup();', app_js)
self.assertIn('startCopySelected();', app_js)
self.assertIn('openF6Flow();', app_js)
self.assertIn('deleteSelected();', app_js)
self.assertIn('openInfo();', app_js)
self.assertIn('elements.title.textContent = "Properties";', app_js)
self.assertIn('if (selectedItems.length > 1) {', app_js)
self.assertIn('renderInfoField("Selected items", selectedItems.length);', app_js)
self.assertIn('renderInfoField("Files", fileCount);', app_js)
self.assertIn('renderInfoField("Directories", directoryCount);', app_js)
self.assertIn('document.getElementById("copy-btn").disabled = !hasSelection;', app_js)
self.assertNotIn('Only files are supported for copy', app_js)
self.assertIn('document.getElementById("upload-menu-toggle").onclick = (event) => {', app_js)