Loading client/src/components/History/Content/Dataset/DatasetDownload.vue +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ variant="link" toggle-class="text-decoration-none" title="Download" class="download-btn" data-description="dataset download"> <template v-slot:button-content> <span class="fa fa-save" /> Loading @@ -17,6 +18,7 @@ <b-dropdown-item v-for="(metaFile, index) of metaFiles" :key="index" :data-description="`download ${metaFile.file_type}`" @click.stop="onDownload(metaDownloadUrl, metaFile.file_type)"> Download {{ metaFile.file_type }} </b-dropdown-item> Loading client/src/mvc/dataset/dataset-li.js +3 −1 Original line number Diff line number Diff line Loading @@ -371,7 +371,9 @@ export var DatasetListItemView = _super.extend( ${_.map( this.model.get("meta_files"), (meta_file) => `<a class="dropdown-item" href="${urls.meta_download + meta_file.file_type}"> `<a class="dropdown-item" href="${ urls.meta_download + meta_file.file_type }" data-description="download ${meta_file.file_type}"> ${_l("Download")} ${meta_file.file_type} </a>` )} Loading client/src/utils/navigation/navigation.yml +1 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,7 @@ history_panel: download_button: '${_} .download-btn' info_button: '${_} .params-btn' alltags: '${_} .alltags .ti-tags' metadata_file_download: '${_} [data-description="download ${metadata_name}"]' dataset_operations_dropdown: '${_} .dataset-actions' Loading lib/galaxy_test/selenium/test_dataset_metadata_download.py 0 → 100644 +29 −0 Original line number Diff line number Diff line from .framework import ( selenium_test, SeleniumTestCase, UsesHistoryItemAssertions, ) FIRST_HID = 1 class HistoryDatasetStateTestCase(SeleniumTestCase, UsesHistoryItemAssertions): ensure_registered = True @selenium_test def test_dataset_metadata_download(self): self._prepare_dataset() item = self.history_panel_item_component(hid=FIRST_HID) item.download_button.wait_for_and_click() # For some reason the legacy history metadata drop-down is not a child of the dataset item if self.is_beta_history: item.metadata_file_download(metadata_name="bam_index").wait_for_and_click() def _prepare_dataset(self): self.history_panel_create_new() self.perform_upload(self.get_filename("1.bam")) self.history_panel_wait_for_hid_ok(FIRST_HID) self.assert_item_name(FIRST_HID, "1.bam") # Expand HDA and wait for details to show up. return self.history_panel_click_item_title(hid=FIRST_HID, wait=True) Loading
client/src/components/History/Content/Dataset/DatasetDownload.vue +2 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ variant="link" toggle-class="text-decoration-none" title="Download" class="download-btn" data-description="dataset download"> <template v-slot:button-content> <span class="fa fa-save" /> Loading @@ -17,6 +18,7 @@ <b-dropdown-item v-for="(metaFile, index) of metaFiles" :key="index" :data-description="`download ${metaFile.file_type}`" @click.stop="onDownload(metaDownloadUrl, metaFile.file_type)"> Download {{ metaFile.file_type }} </b-dropdown-item> Loading
client/src/mvc/dataset/dataset-li.js +3 −1 Original line number Diff line number Diff line Loading @@ -371,7 +371,9 @@ export var DatasetListItemView = _super.extend( ${_.map( this.model.get("meta_files"), (meta_file) => `<a class="dropdown-item" href="${urls.meta_download + meta_file.file_type}"> `<a class="dropdown-item" href="${ urls.meta_download + meta_file.file_type }" data-description="download ${meta_file.file_type}"> ${_l("Download")} ${meta_file.file_type} </a>` )} Loading
client/src/utils/navigation/navigation.yml +1 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,7 @@ history_panel: download_button: '${_} .download-btn' info_button: '${_} .params-btn' alltags: '${_} .alltags .ti-tags' metadata_file_download: '${_} [data-description="download ${metadata_name}"]' dataset_operations_dropdown: '${_} .dataset-actions' Loading
lib/galaxy_test/selenium/test_dataset_metadata_download.py 0 → 100644 +29 −0 Original line number Diff line number Diff line from .framework import ( selenium_test, SeleniumTestCase, UsesHistoryItemAssertions, ) FIRST_HID = 1 class HistoryDatasetStateTestCase(SeleniumTestCase, UsesHistoryItemAssertions): ensure_registered = True @selenium_test def test_dataset_metadata_download(self): self._prepare_dataset() item = self.history_panel_item_component(hid=FIRST_HID) item.download_button.wait_for_and_click() # For some reason the legacy history metadata drop-down is not a child of the dataset item if self.is_beta_history: item.metadata_file_download(metadata_name="bam_index").wait_for_and_click() def _prepare_dataset(self): self.history_panel_create_new() self.perform_upload(self.get_filename("1.bam")) self.history_panel_wait_for_hid_ok(FIRST_HID) self.assert_item_name(FIRST_HID, "1.bam") # Expand HDA and wait for details to show up. return self.history_panel_click_item_title(hid=FIRST_HID, wait=True)