From 5b7418668e9206b04e42fca799baa0314f1e42c4 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Wed, 28 Jan 2026 23:47:39 +0100 Subject: [PATCH] Update sort selector titles to match UI Update Selenium test selectors to use correct selectors, ensuring tests correctly locate and interact with sort controls after label changes. --- lib/galaxy_test/selenium/test_histories_list.py | 4 ++-- lib/galaxy_test/selenium/test_histories_published.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/galaxy_test/selenium/test_histories_list.py b/lib/galaxy_test/selenium/test_histories_list.py index 338b5cc797c..5839016deaf 100644 --- a/lib/galaxy_test/selenium/test_histories_list.py +++ b/lib/galaxy_test/selenium/test_histories_list.py @@ -230,8 +230,8 @@ class TestSavedHistories(SharedStateSeleniumTestCase): self._login() self.navigate_to_histories_page() - self.wait_for_and_click_selector('[data-title="Sort by name ascending"]') - self.wait_for_and_click_selector('[data-title="Sort by name ascending"]') + self.wait_for_and_click_selector('[data-title="Sort by Name ascending"]') + self.wait_for_and_click_selector('[data-title="Sort by Name ascending"]') self.sleep_for(self.wait_types.UX_RENDER) expected_histories = [self.history2_name, self.history3_name] diff --git a/lib/galaxy_test/selenium/test_histories_published.py b/lib/galaxy_test/selenium/test_histories_published.py index bf4915b9342..ea486b1c180 100644 --- a/lib/galaxy_test/selenium/test_histories_published.py +++ b/lib/galaxy_test/selenium/test_histories_published.py @@ -23,8 +23,8 @@ class TestPublishedHistories(SharedStateSeleniumTestCase): self._login() self.navigate_to_published_histories() - self.wait_for_and_click_selector('[data-title="Sort by name ascending"]') - self.wait_for_and_click_selector('[data-title="Sort by name ascending"]') + self.wait_for_and_click_selector('[data-title="Sort by Name ascending"]') + self.wait_for_and_click_selector('[data-title="Sort by Name ascending"]') self.sleep_for(self.wait_types.UX_RENDER) sorted_histories = self.get_published_history_names_from_server(sort_by="name") @@ -36,7 +36,7 @@ class TestPublishedHistories(SharedStateSeleniumTestCase): self._login() self.navigate_to_published_histories() - self.wait_for_and_click_selector('[data-title="Sort by update time ascending"]') + self.wait_for_and_click_selector('[data-title="Sort by Update time ascending"]') self.sleep_for(self.wait_types.UX_RENDER) expected_history_names = self.get_published_history_names_from_server(sort_by="update_time")