Skip to content

Commit

Permalink
[6.16.z] Fix hostCollection UI e2e test (#16319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Sep 11, 2024
1 parent c7e9f8c commit fbc1170
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/foreman/ui/test_hostcollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ def _get_content_repository_urls(repos_collection, lce, content_view, module_tar

@pytest.mark.tier2
@pytest.mark.upgrade
def test_positive_end_to_end(
session, module_target_sat, module_org_with_parameter, smart_proxy_location
):
def test_positive_end_to_end(module_target_sat, module_org_with_parameter, smart_proxy_location):
"""Perform end to end testing for host collection component
:id: 1d40bc74-8e05-42fa-b6e3-2999dc3b730d
Expand All @@ -222,7 +220,8 @@ def test_positive_end_to_end(
host = module_target_sat.api.Host(
organization=module_org_with_parameter, location=smart_proxy_location
).create()
with session:
with module_target_sat.ui_session() as session:
session.organization.select(module_org_with_parameter.name)
session.location.select(smart_proxy_location.name)
# Create new host collection
session.hostcollection.create(
Expand Down

0 comments on commit fbc1170

Please sign in to comment.