From 3d579b25628f00544b2d60e8742184d3fa81e591 Mon Sep 17 00:00:00 2001 From: vijaysawant Date: Mon, 20 Jan 2025 22:35:44 +0530 Subject: [PATCH] implemented PF4 related comments --- airgun/views/subscription.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airgun/views/subscription.py b/airgun/views/subscription.py index a0ed0729f..a045b0c0d 100644 --- a/airgun/views/subscription.py +++ b/airgun/views/subscription.py @@ -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, @@ -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() @@ -115,7 +115,7 @@ def fill(self, values): self.close() -class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin): +class SubscriptionListView(BaseLoggedInView, SearchableViewMixinPF4): """List of all subscriptions.""" table = SatSubscriptionsViewTable(