Skip to content

Commit

Permalink
6.14.z changes - increse timeout for read subscription (#1420)
Browse files Browse the repository at this point in the history
* 6.14.z changes - increse timeout for read subscription

* update is_display of subscription view
  • Loading branch information
vijaysawant authored Jun 11, 2024
1 parent d62403a commit 51a96a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airgun/entities/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +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)
view.wait_displayed(timeout=60, delay=10)
return view.table.read()


Expand Down
5 changes: 3 additions & 2 deletions airgun/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,13 @@ class SubscriptionListView(BaseLoggedInView, SubscriptionSearchableViewMixin):
columns_filter_checkboxes = SubscriptionColumnsFilter(
".//form[div[contains(@class, 'filter')]]/div/i"
)
table_loading = Text("//h5[normalize-space(.)='Loading']")

@property
def is_displayed(self):
return (
self.browser.wait_for_element('div#subscriptions-table', timeout=10, exception=False)
is not None
self.browser.wait_for_element(self.table_loading, exception=False) is None
and self.browser.wait_for_element(self.table, exception=False) is not None
)

def is_searchable(self):
Expand Down

0 comments on commit 51a96a8

Please sign in to comment.