Skip to content

Commit

Permalink
Adjust selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 23, 2023
1 parent 7df5f5c commit 1812395
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
8 changes: 1 addition & 7 deletions client/src/components/Grid/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,7 @@ watch(operationMessage, () => {
</table>
<div class="flex-grow-1 h-100" />
<div v-if="isAvailable" class="grid-footer d-flex justify-content-center pt-3">
<BPagination
v-model="currentPage"
:total-rows="totalRows"
:per-page="limit"
class="m-0"
size="sm"
aria-controls="grid-table" />
<BPagination v-model="currentPage" :total-rows="totalRows" :per-page="limit" class="m-0" size="sm" />
</div>
</div>
</template>
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 @@ -430,8 +430,8 @@ collection_builders:
name: "input.collection-name"

histories:
labels:
import_button: 'Import history'
selectors:
import_button: '[data-description="grid action import new history"]'
sharing:
selectors:
unshare_user_button: '.share_with_view .multiselect__tag-icon'
Expand Down
5 changes: 2 additions & 3 deletions lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,12 +1706,11 @@ def histories_click_advanced_search(self):
def histories_get_history_names(self):
self.sleep_for(self.wait_types.UX_RENDER)
names = []
grid = self.wait_for_selector("#grid-table-body")
grid = self.wait_for_selector("#histories-grid")
for row in grid.find_elements(By.TAG_NAME, "tr"):
td = row.find_elements(By.TAG_NAME, "td")
name = td[1].text if td[0].text == "" else td[0].text
if name != "No items" and not name.startswith("No matching entries found"):
names.append(name)
names.append(name)
return names

@edit_details
Expand Down

0 comments on commit 1812395

Please sign in to comment.