Skip to content

Commit

Permalink
Add waitfor logic to version table read
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Oct 17, 2023
1 parent 5fe220f commit 7262587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions airgun/entities/contentview_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def publish(self, entity_name, values=None):
view = self.navigate_to(self, 'Edit', entity_name=entity_name)
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
view.versions.table.wait_displayed()
return view.versions.table.read()


Expand Down
2 changes: 1 addition & 1 deletion airgun/views/contentview_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class ContentViewVersionPublishView(BaseLoggedInView):

@property
def is_displayed(self):
return self.title.wait_displayed()
return self.title.is_displayed

def wait_animation_end(self):
wait_for(
Expand Down

0 comments on commit 7262587

Please sign in to comment.