Skip to content

Commit

Permalink
fix selectors for the changes to the collection builder
Browse files Browse the repository at this point in the history
fix selector for name collection in collection builder

fix hide original items selector in collection creator

fix clear filters selector in collection creator
  • Loading branch information
ahmedhamidawan committed Nov 23, 2024
1 parent c4d9247 commit 5090d7b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ watch(
{{ localize("Remove file extensions?") }}
</BFormCheckbox>

<BFormCheckbox v-model="localHideSourceItems" name="hide-originals" switch>
<BFormCheckbox
v-model="localHideSourceItems"
name="hide-originals"
data-description="hide original elements"
switch>
<HelpText
uri="galaxy.collections.collectionBuilder.hideOriginalElements"
:text="localize('Hide original elements')" />
Expand All @@ -208,6 +212,7 @@ watch(
<BFormInput
id="collection-name"
v-model="collectionName"
class="collection-name"
:placeholder="localize('Enter a name for your new collection')"
size="sm"
required
Expand Down
4 changes: 2 additions & 2 deletions client/src/utils/navigation/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ history_copy_elements:

collection_builders:
selectors:
clear_filters: "a.clear-filters-link"
clear_filters: "button.clear-filters-link"
forward_datasets: ".forward-column .column-datasets"
reverse_datasets: ".reverse-column .column-datasets"
name: "input.collection-name"
Expand Down Expand Up @@ -1051,7 +1051,7 @@ libraries:
export_to_history_paired_option: 'option[value="${collection_option}"]'
export_to_history_collection_name: '.collection-name'
export_to_history_new_history: 'input[name=history_name]'
clear_filters: '.clear-filters-link'
clear_filters: "button.clear-filters-link"
import_progress_bar: '.progress-bar-import'
import_from_path_textarea: '#import_paths'
select_all: '#select-all-checkboxes'
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1987,13 +1987,13 @@ def _wait_for_input_text_component_and_fill(self, component, text):
target_element.send_keys(text)

def collection_builder_hide_originals(self):
self.wait_for_and_click_selector("input.hide-originals")
self.wait_for_and_click_selector('[data-description="hide original elements"]')

def collection_builder_create(self):
self.wait_for_and_click_selector("button.create-collection")

def collection_builder_clear_filters(self):
self.wait_for_and_click_selector("a.clear-filters-link")
self.wait_for_and_click_selector("button.clear-filters-link")

def collection_builder_click_paired_item(self, forward_or_reverse, item):
assert forward_or_reverse in ["forward", "reverse"]
Expand Down

0 comments on commit 5090d7b

Please sign in to comment.