Skip to content

Commit

Permalink
6.15.z-fix subscription search box xpath (#1405)
Browse files Browse the repository at this point in the history
* fix subscription search box xpath

* add sleep to test changes in CI
  • Loading branch information
vijaysawant authored Jun 3, 2024
1 parent 164ec7c commit 4e395a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions airgun/entities/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def delete(self, entity_name):
def read_subscriptions(self):
"""Return subscriptions table"""
view = self.navigate_to(self, 'All')
view.wait_displayed(timeout=10, delay=1)
return view.table.read()

def sca_alert(self):
Expand Down
4 changes: 3 additions & 1 deletion airgun/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
# 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[starts-with(@id, 'downshift-')]"))
search_field = TextInput(
locator=('//input[@aria-label="Search input" and @placeholder="Search"]')
)
search_button = Button('Search')


Expand Down

0 comments on commit 4e395a8

Please sign in to comment.