Skip to content

Commit

Permalink
adjust selenium for rows per page in grid
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed May 6, 2024
1 parent e8c9c05 commit 34b7b6f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/galaxy_test/selenium/test_invocation_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,19 @@ def test_grid(self):
history_id=history_id,
assert_ok=True,
wait=True,
invocations=2,
invocations=30,
)
gx_selenium_context.navigate_to_invocations()
self._assert_showing_n_invocations(2)

# by default the pager only appears when there are too many invocations
# for one page - so verify it is absent and then swap to showing just
# one invocation per page.
# shows a maximum of 25 invocations per page
self._assert_showing_n_invocations(25)
invocations = gx_selenium_context.components.invocations
invocations.pager.wait_for_absent_or_hidden()
self.re_get_with_query_params("rows_per_page=1")
self._assert_showing_n_invocations(1)
invocations.pager.wait_for_visible()
self.screenshot("invocations_paginated_first_page")
self._next_page(invocations)
self._assert_current_page_is(invocations, 2)
# shows the remaining 5 invocations on the second page
self._assert_showing_n_invocations(5)
self.screenshot("invocations_paginated_next_page")
self._previous_page(invocations)
self._assert_current_page_is(invocations, 1)
Expand Down

0 comments on commit 34b7b6f

Please sign in to comment.