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 22, 2024
1 parent c4d9247 commit cb18589
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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
2 changes: 1 addition & 1 deletion 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
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 cb18589

Please sign in to comment.