feat: contextmenu deel 2
This commit is contained in:
@@ -68,6 +68,10 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('id="feedback-modal"', body)
|
||||
self.assertIn('id="feedback-message"', body)
|
||||
self.assertIn('id="feedback-close-btn"', body)
|
||||
self.assertIn('id="context-menu"', body)
|
||||
self.assertIn('id="context-menu-scope"', body)
|
||||
self.assertIn('id="context-menu-target"', body)
|
||||
self.assertIn('id="context-menu-open-placeholder"', body)
|
||||
self.assertIn('id="settings-btn"', body)
|
||||
self.assertIn('id="rename-btn"', body)
|
||||
self.assertIn('id="view-btn"', body)
|
||||
@@ -200,6 +204,15 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('function feedbackElements()', app_js)
|
||||
self.assertIn('function openFeedbackModal(message)', app_js)
|
||||
self.assertIn('function closeFeedbackModal()', app_js)
|
||||
self.assertIn('function contextMenuElements()', app_js)
|
||||
self.assertIn('function openContextMenu(pane, entry, event)', app_js)
|
||||
self.assertIn('function closeContextMenu()', app_js)
|
||||
self.assertIn('selectedPathsSet.has(entry.path)', app_js)
|
||||
self.assertIn('entry.isParent', app_js)
|
||||
self.assertIn('row.oncontextmenu = (event) => {', app_js)
|
||||
self.assertIn('event.target.closest("li[data-row-index]")', app_js)
|
||||
self.assertIn('if (!row) {', app_js)
|
||||
self.assertIn('closeContextMenu();', app_js)
|
||||
self.assertIn('document.getElementById("upload-menu-toggle").onclick = (event) => {', app_js)
|
||||
self.assertIn('document.getElementById("upload-folder-btn").onclick = openFolderPicker;', app_js)
|
||||
self.assertIn('throw createApiError(response, data);', app_js)
|
||||
|
||||
Reference in New Issue
Block a user