feat: B4 - progressbar
This commit is contained in:
@@ -229,6 +229,10 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('function closeFeedbackModal()', app_js)
|
||||
self.assertIn('function downloadModalElements()', app_js)
|
||||
self.assertIn('function isZipDownloadSelection(items)', app_js)
|
||||
self.assertIn('function archiveTaskStatusLabel(status)', app_js)
|
||||
self.assertIn('function archiveTaskCountText(task)', app_js)
|
||||
self.assertIn('function archiveTaskCurrentItemText(task)', app_js)
|
||||
self.assertIn('function archiveTaskProgressPercent(task)', app_js)
|
||||
self.assertIn('function openZipDownloadModal(selectedItems)', app_js)
|
||||
self.assertIn('function markZipDownloadReady(fileName)', app_js)
|
||||
self.assertIn('function markZipDownloadFailed(err)', app_js)
|
||||
@@ -248,16 +252,18 @@ class UiSmokeGoldenTest(unittest.TestCase):
|
||||
self.assertIn('async function downloadFileRequest(paths)', app_js)
|
||||
self.assertIn('const zipDownload = isZipDownloadSelection(selectedItems);', app_js)
|
||||
self.assertIn('openZipDownloadModal(selectedItems);', app_js)
|
||||
self.assertIn('targetText: "Preparing download..."', app_js)
|
||||
self.assertIn('statusText: "Preparing download..."', app_js)
|
||||
self.assertIn('countText: "Preparing zip download"', app_js)
|
||||
self.assertIn('countText: "Zip preflight and packaging"', app_js)
|
||||
self.assertIn('statusText: "Download started"', app_js)
|
||||
self.assertIn('countText: "Browser download started"', app_js)
|
||||
self.assertIn('countText: "Zip download failed"', app_js)
|
||||
self.assertIn('countText: "Zip download cancelled"', app_js)
|
||||
self.assertIn('targetText: "Archive download requested"', app_js)
|
||||
self.assertIn('statusText: "Requested"', app_js)
|
||||
self.assertIn('countText: "Waiting for archive task"', app_js)
|
||||
self.assertIn('targetText: "Archive download task"', app_js)
|
||||
self.assertIn('statusText: "Ready"', app_js)
|
||||
self.assertIn('countText: "Browser download requested"', app_js)
|
||||
self.assertIn('countText: "Archive task failed"', app_js)
|
||||
self.assertIn('countText: "Archive task cancelled"', app_js)
|
||||
self.assertIn('statusText: "Cancelling download..."', app_js)
|
||||
self.assertIn('statusText: err.message || "Download failed"', app_js)
|
||||
self.assertIn('statusText: `Failed: ${err.message || "Archive download failed"}`', app_js)
|
||||
self.assertIn('return `${task.done_items}/${task.total_items} top-level items`;', app_js)
|
||||
self.assertIn('return `Current: ${task.current_item}`;', app_js)
|
||||
self.assertIn('downloadProgressState.requestKey === requestKey', app_js)
|
||||
self.assertIn('setStatus("Preparing download...");', app_js)
|
||||
self.assertIn('"/api/files/download/archive-prepare"', app_js)
|
||||
|
||||
Reference in New Issue
Block a user