Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for all hosts page manage columns #15383

Merged
merged 5 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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):
pondrejk marked this conversation as resolved.
Show resolved Hide resolved
"""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
"""
sambible marked this conversation as resolved.
Show resolved Hide resolved
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