Skip to content

Commit

Permalink
implemented PF4 related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Jan 20, 2025
1 parent 0fd7b52 commit 3d579b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airgun/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from widgetastic_patternfly import BreadCrumb, Button

from airgun.exceptions import ReadOnlyWidgetError
from airgun.views.common import BaseLoggedInView, SatTab, SearchableViewMixin
from airgun.views.common import BaseLoggedInView, SatTab, SearchableViewMixinPF4
from airgun.widgets import (
ConfirmationDialog,
ItemsListReadOnly,
Expand All @@ -23,11 +23,11 @@
# Search field and button on Subscriptions page uses different locators,
# so subclass it and use it in our custom SearchableViewMixin
class SubscriptionSearch(Search):
search_field = TextInput(locator=(".//input[@placeholder = 'Search']"))
search_field = TextInput(locator=(".//input[starts-with(@id, 'downshift-')]"))
search_button = Button('Search')


class SubscriptionSearchableViewMixin(SearchableViewMixin):
class SubscriptionSearchableViewMixin(SearchableViewMixinPF4):
searchbox = SubscriptionSearch()


Expand Down Expand Up @@ -115,7 +115,7 @@ def fill(self, values):
self.close()


class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin):
class SubscriptionListView(BaseLoggedInView, SearchableViewMixinPF4):
"""List of all subscriptions."""

table = SatSubscriptionsViewTable(
Expand Down

0 comments on commit 3d579b2

Please sign in to comment.