Commit eef29d34 authored by guerler's avatar guerler
Browse files

Force tour and library tests to use legacy history

parent 2b00b0b5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1702,6 +1702,7 @@ class NavigatesGalaxy(HasDriver):
            tour_callback = NullTourCallback()

        self.home()
        self.use_legacy_history()

        with open(path) as f:
            tour_dict = yaml.safe_load(f)
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ class AnonymousHistoriesTestCase(SeleniumTestCase):
    @selenium_test
    def test_anon_history_landing(self):
        self.home()
        self.use_legacy_history()
        self.assert_initial_history_panel_state_correct()

        # Anonymous users can annotate or tag, these components should be absent.
@@ -41,6 +42,7 @@ class AnonymousHistoriesTestCase(SeleniumTestCase):

    @selenium_test
    def test_clean_anon_history_after_logout(self):
        self.use_legacy_history()
        self._upload_file_anonymous_then_register_user()
        self.logout_if_needed()
        # Give Galaxy the chance to load a new empty history for that now
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class CustomBuildsTestcase(SharedStateSeleniumTestCase):
    @selenium_test
    def test_build_delete(self):
        self._login()

        self.use_legacy_history()
        self.navigate_to_custom_builds_page()

        self.add_custom_build(self.build_name2, self.build_key2)
+4 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ VALID_LOGIN_RETRIES = 3
class HistorySharingTestCase(SeleniumTestCase):
    @selenium_test
    def test_sharing_valid(self):
        self.use_legacy_history()
        user1_email, user2_email, history_id = self.setup_two_users_with_one_shared_history()
        self.submit_login(user2_email, retries=VALID_LOGIN_RETRIES)
        response = self.api_get(f"histories/{history_id}", raw=True)
@@ -25,6 +26,7 @@ class HistorySharingTestCase(SeleniumTestCase):

    @selenium_test
    def test_unsharing(self):
        self.use_legacy_history()
        user1_email, user2_email, history_id = self.setup_two_users_with_one_shared_history()
        self.submit_login(user1_email, retries=VALID_LOGIN_RETRIES)
        self.navigate_to_history_share_page()
@@ -58,6 +60,7 @@ class HistorySharingTestCase(SeleniumTestCase):

    @selenium_test
    def test_sharing_with_invalid_user(self):
        self.use_legacy_history()
        user1_email = self._get_random_email()
        self.register(user1_email)
        self.share_history_with_user(user_email="invalid_user@test.com")
@@ -65,6 +68,7 @@ class HistorySharingTestCase(SeleniumTestCase):

    @selenium_test
    def test_sharing_with_self(self):
        self.use_legacy_history()
        user1_email = self._get_random_email()
        self.register(user1_email)
        self.share_history_with_user(user_email=user1_email)
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class LibraryToCollectionsTestCase(SeleniumTestCase, UsesLibraryAssertions):

    def collection_export(self, is_new_history=False, collection_option=None):
        random_name = self._get_random_name()

        self.use_legacy_history()
        self.prepare_library_for_data_export(["1.bam", "1.bed"], random_name if is_new_history else None)
        self.components.libraries.folder.export_to_history_options.wait_for_and_click()

Loading