Skip to content

Commit

Permalink
Test for all hosts page manage columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Jun 12, 2024
1 parent 9072e6f commit f51ef49
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,37 @@ def test_positive_manage_table_columns(
assert (column in displayed_columns) is is_displayed


@pytest.mark.tier2
def test_all_hosts_manage_columns(target_sat, function_org, new_host_ui):
"""Verify that the manage columns widget changes the columns appropriately
:id: 5e13267a-68d2-451a-ae00-6502dd5db7f4
:expectedresults: Through the widget you can change the columns on the All Hosts page
:CaseComponent:Hosts-Content
:Team: Phoenix-subscriptions
"""
columns = {
'Host group': True,
'Last report': True,
'Comment': True,
'IPv4': True,
'MAC': True,
'Sockets': True,
'Cores': True,
'RAM': True,
'Boot time': True,
}
with target_sat.ui_session() as session:
session.organization.select(function_org.name)
session.all_hosts.manage_table_columns(columns)
displayed_columns = session.all_hosts.get_displayed_table_headers()
for column, is_displayed in columns.items():
assert (column in displayed_columns) is is_displayed


@pytest.mark.tier4
def test_positive_host_details_read_templates(
session, target_sat, current_sat_org, current_sat_location
Expand Down

0 comments on commit f51ef49

Please sign in to comment.