Skip to content

Commit

Permalink
create locations so test doesn't fail on new Sat
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrlc committed Nov 9, 2023
1 parent 39b8d6b commit 581b6bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/foreman/ui/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ def test_pagination(session):
assert view.table.pagination.current_page == 1
assert view.table.pagination.total_pages > 0

# Pagination in a view with Table
# Pagination in a view with Table, Pagination disabled
view = session.location.navigate_to(session.location, 'All')
assert view.pagination.is_enabled is False
assert view.pagination.current_page == 1
assert view.pagination.total_pages > 0

# Create dummy locations to fill table
for i in range(0, 21):
session.location.create({'name': f'location{i}'})

# Pagination in a view with Table, Pagination enabled
view = session.location.navigate_to(session.location, 'All')
assert view.pagination.is_enabled is True
assert view.pagination.current_page == 1
Expand Down

0 comments on commit 581b6bc

Please sign in to comment.