Skip to content

Commit

Permalink
hosts table: fix locator for host Name column
Browse files Browse the repository at this point in the history
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 Jul 3, 2024
1 parent ccac4bc commit 886a1a8
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 886a1a8

Please sign in to comment.