Skip to content

Commit

Permalink
clear search before searching for other tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Nov 25, 2024
1 parent c11cba1 commit 477546e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/utils/navigation/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@ tools:
execute: '#execute'
help: 'div.form-help'
search: '#toolbox-panel .search-query'
clear_search: '#toolbox-panel .search-clear'
title: '.toolSectionTitle'

admin:
Expand Down
3 changes: 3 additions & 0 deletions lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,9 @@ def open_toolbox(self):
def tool_open(self, tool_id, outer=False):
self.open_toolbox()

self.components.tools.clear_search.wait_for_and_click()
self.sleep_for(self.wait_types.UX_RENDER)

self.components.tools.search.wait_for_and_send_keys(f"id:{tool_id}")

if outer:
Expand Down

0 comments on commit 477546e

Please sign in to comment.