Skip to content

Commit 28474f1

Browse files
sambiblevsedmik
andauthored
Test for all hosts page manage columns (SatelliteQE#15383)
* Test for all hosts page manage columns * Add Verifies section to docstring Co-authored-by: vsedmik <46570670+vsedmik@users.noreply.github.com> * Fix Whitespace --------- Co-authored-by: vsedmik <46570670+vsedmik@users.noreply.github.com>
1 parent 2577467 commit 28474f1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

tests/foreman/ui/test_host.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,39 @@ def test_positive_manage_table_columns(
12031203
assert (column in displayed_columns) is is_displayed
12041204

12051205

1206+
@pytest.mark.tier2
1207+
def test_all_hosts_manage_columns(target_sat, function_org, new_host_ui):
1208+
"""Verify that the manage columns widget changes the columns appropriately
1209+
1210+
:id: 5e13267a-68d2-451a-ae00-6502dd5db7f4
1211+
1212+
:expectedresults: Through the widget you can change the columns on the All Hosts page
1213+
1214+
:CaseComponent: Hosts-Content
1215+
1216+
:Team: Phoenix-subscriptions
1217+
1218+
:Verifies: SAT-19064
1219+
"""
1220+
columns = {
1221+
'Host group': True,
1222+
'Last report': True,
1223+
'Comment': True,
1224+
'IPv4': True,
1225+
'MAC': True,
1226+
'Sockets': True,
1227+
'Cores': True,
1228+
'RAM': True,
1229+
'Boot time': True,
1230+
}
1231+
with target_sat.ui_session() as session:
1232+
session.organization.select(function_org.name)
1233+
session.all_hosts.manage_table_columns(columns)
1234+
displayed_columns = session.all_hosts.get_displayed_table_headers()
1235+
for column, is_displayed in columns.items():
1236+
assert (column in displayed_columns) is is_displayed
1237+
1238+
12061239
@pytest.mark.tier4
12071240
def test_positive_host_details_read_templates(
12081241
session, target_sat, current_sat_org, current_sat_location

0 commit comments

Comments
 (0)