Skip to content

Commit

Permalink
fixed in method for discovery rule and updated it's entities
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Aug 2, 2024
1 parent 36cb87d commit c7123de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions airgun/views/discoveryrule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from widgetastic.widget import Checkbox, Text, TextInput, View
from widgetastic.widget import Checkbox, Table, Text, TextInput, View
from widgetastic_patternfly import BreadCrumb
from widgetastic_patternfly4 import Button as PF4Button

Expand All @@ -8,18 +8,17 @@
AutoCompleteTextInput,
FilteredDropdown,
MultiSelect,
SatTable,
)


class DiscoveryRulesView(BaseLoggedInView, SearchableViewMixinPF4):
title = Text("//h1[normalize-space(.)='Discovery Rules']")
new = Text("//a[contains(@href, '/discovery_rules/new')]")
new_on_blank_page = PF4Button('Create Rule')
table = SatTable(
table = Table(
'.//table',
column_widgets={
'Name': Text('./a'),
'Name': Text('.//a'),
'Actions': ActionsDropdown("./div[contains(@class, 'btn-group')]"),
},
)
Expand Down

0 comments on commit c7123de

Please sign in to comment.