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.

(cherry picked from commit 7d85389)
  • Loading branch information
pnovotny authored and web-flow committed Nov 20, 2024
1 parent 22f4cc9 commit 144d0b2
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 @@ -226,7 +226,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 144d0b2

Please sign in to comment.