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.
This commit is contained in:
Alireza Heidari
2026-01-28 23:48:30 +01:00
parent 936113eb76
commit 5b7418668e
2 changed files with 5 additions and 5 deletions
@@ -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]
@@ -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")