Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.14.z changes - increse timeout for read subscription #1420

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading