Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for galaxy_test.selenium.test_collection_builders
from .framework import (
selenium_test,
SeleniumTestCase
)
[docs]class CollectionBuildersTestCase(SeleniumTestCase):
ensure_registered = True
[docs] @selenium_test
def test_build_list_and_show_items(self):
self.perform_upload(self.get_filename("1.fasta"))
self.history_panel_wait_for_hid_ok(1)
self.history_panel_multi_operations_show()
self.history_panel_muli_operation_select_hid(1)
self.history_panel_multi_operation_action_click(self.navigation.history_panel.multi_operations.labels.build_list)
# this toggles the checkbox to not hide originals
self.collection_builder_hide_originals()
self.collection_builder_set_name("my cool list")
self.collection_builder_create()
self.history_panel_wait_for_hid_ok(3)
[docs] @selenium_test
def test_build_paired_list_simple(self):
self.perform_upload(self.get_filename("1.tabular"))
self.perform_upload(self.get_filename("2.tabular"))
self._wait_for_hid_visible(1)
self._wait_for_hid_visible(2)
self.history_panel_multi_operations_show()
self.history_panel_muli_operation_select_hid(1)
self.history_panel_muli_operation_select_hid(2)
self.history_panel_multi_operation_action_click(self.navigation.history_panel.multi_operations.labels.build_list_pairs)
self.collection_builder_clear_filters()
self.collection_builder_click_paired_item("forward", 0)
self.collection_builder_click_paired_item("reverse", 1)
self.collection_builder_set_name("my awesome paired list")
self.screenshot("collection_builder_paired_list")
self.collection_builder_create()
self.history_panel_wait_for_hid_ok(3)
self.history_panel_wait_for_hid_hidden(1)
self.history_panel_wait_for_hid_hidden(2)
[docs] @selenium_test
def test_build_paired_list_show_original(self):
self.perform_upload(self.get_filename("1.tabular"))
self.perform_upload(self.get_filename("2.tabular"))
self._wait_for_hid_visible(1)
self._wait_for_hid_visible(2)
self.history_panel_multi_operations_show()
self.history_panel_muli_operation_select_hid(1)
self.history_panel_muli_operation_select_hid(2)
self.history_panel_multi_operation_action_click(self.navigation.history_panel.multi_operations.labels.build_list_pairs)
self.wait_for_and_click(self.navigation.collection_builders.selectors.clear_filters)
forward_column = self.wait_for_visible(self.navigation.collection_builders.selectors.forward_datasets)
first_datset_forward = forward_column.find_elements_by_css_selector("li")[0]
first_datset_forward.click()
reverse_column = self.wait_for_visible(self.navigation.collection_builders.selectors.reverse_datasets)
second_dataset_reverse = reverse_column.find_elements_by_css_selector("li")[1]
second_dataset_reverse.click()
# this toggles the checkbox to not hide originals
self.collection_builder_hide_originals()
self.collection_builder_set_name("my awesome paired list")
self.collection_builder_create()
self.history_panel_wait_for_hid_ok(5)
self.history_panel_refresh_click()
self.history_panel_wait_for_hid_ok(1)
self.history_panel_wait_for_hid_ok(2)
self.history_panel_wait_for_hid_hidden(3)
self.history_panel_wait_for_hid_hidden(4)
def _wait_for_hid_visible(self, hid):
self.history_panel_wait_for_hid_visible(hid, allowed_force_refreshes=1)