Skip to content

Commit

Permalink
Test for all hosts page manage columns (#15383)
Browse files Browse the repository at this point in the history
* Test for all hosts page manage columns

* Add Verifies section to docstring

Co-authored-by: vsedmik <[email protected]>

* Fix Whitespace

---------

Co-authored-by: vsedmik <[email protected]>
  • Loading branch information
sambible and vsedmik authored Jun 19, 2024
1 parent 2577467 commit 28474f1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,39 @@ 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
:Verifies: SAT-19064
"""
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 28474f1

Please sign in to comment.