Skip to content

Commit

Permalink
hosts table: fix locator for host Name column (again)
Browse files Browse the repository at this point in the history
Re-introducing this fix after being reverted.
This commit unintentionally broke navigation to host details page,
which was caused by another issue in the Sat hosts table,
then fixed in 71a745e

Original description:

The `HostsView` Name table column XPath was missing leading '.' character,
which caused that all host rows returned had the same Name value,
equal to the first table row host Name.
  • Loading branch information
pnovotny authored and pondrejk committed Nov 20, 2024
1 parent f1a614f commit 7d85389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airgun/views/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class HostsView(BaseLoggedInView, SearchableViewMixinPF4):
column_widgets={
0: Checkbox(locator=".//input[@class='host_select_boxes']"),
'Name': Text(
"//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]"
".//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]"
),
'Recommendations': Text("./a"),
'Actions': ActionsDropdown("./div[contains(@class, 'btn-group')]"),
Expand Down

0 comments on commit 7d85389

Please sign in to comment.