Files
galaxy/test/selenium_tests/test_library_to_collections.py
T
John Chilton e4d0788a28 Improvements to library testing.
- Add tests for creating a collection from a library.
- Add more class names to library GUI to improve selectors for tests.
- Automatically select whichever radio box makes sense in library collection builder dialog based on whether there is a selection or not.
2017-12-18 15:47:17 -05:00

47 lines
1.7 KiB
Python

from .framework import (
selenium_test,
SharedStateSeleniumTestCase,
)
class LibraryToCollectionsTestCase(SharedStateSeleniumTestCase):
requires_admin = True
@selenium_test
def test_list_creation(self):
self.admin_login()
self.history_panel_create_new_with_name("new_history_for_library_list")
self.libraries_open_with_name(self.name)
self.sleep_for(self.wait_types.UX_RENDER)
self.components.libraries.folder.select_all.wait_for_and_click()
self.components.libraries.folder.add_to_history.wait_for_and_click()
self.screenshot("libraries_add_to_history_menu")
self.components.libraries.folder.add_to_history_collection.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)
self.screenshot("libraries_to_collection_landing")
self.components.libraries.folder.import_datasets_ok_button.wait_for_and_click()
self.collection_builder_set_name("my cool list")
self.collection_builder_create()
self.home()
self.history_panel_wait_for_hid_ok(3)
def setup_shared_state(self):
self.admin_login()
self.perform_upload(self.get_filename("1.bed"))
self.wait_for_history()
self.perform_upload(self.get_filename("2.bed"))
self.wait_for_history()
self.name = self._get_random_name(prefix="testcontents")
self.libraries_open()
self.libraries_index_create(self.name)
self.libraries_open_with_name(self.name)
self.libraries_dataset_import_from_history()
self.libraries_dataset_import_from_history_select(["1.bed", "2.bed"])
self.sleep_for(self.wait_types.UX_RENDER)
self.libraries_dataset_import_from_history_click_ok()