Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Updated with requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurilahane committed Jan 30, 2020
1 parent 2e8a251 commit 1a5067d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cfme/tests/cloud_infra_common/test_relationships.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,13 @@ def test_change_network_security_groups_per_page_items(setup_provider, appliance
"""
view = navigate_to(provider, "NetworkSecurityGroup")
view.toolbar.view_selector.select('List View')
view.paginator.set_items_per_page(1000)
total_count = len(view.entities.get_all())
total_count = len(view.entities.get_all(surf_pages=True))
for item_count in [5, 10, 20, 50, 100, 200, 500, 1000]:
if item_count <= total_count:
view.paginator.set_items_per_page(item_count)
assert len(view.entities.get_all()) <= view.paginator.items_per_page
else:
break


@pytest.fixture(scope="function")
Expand Down

0 comments on commit 1a5067d

Please sign in to comment.