From 7262587bec32a2c544fd5b4e2dc974f42f1d9580 Mon Sep 17 00:00:00 2001 From: Sam Bible Date: Tue, 17 Oct 2023 09:31:59 -0500 Subject: [PATCH] Add waitfor logic to version table read --- airgun/entities/contentview_new.py | 1 + airgun/views/contentview_new.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/airgun/entities/contentview_new.py b/airgun/entities/contentview_new.py index f275797b1..400808698 100644 --- a/airgun/entities/contentview_new.py +++ b/airgun/entities/contentview_new.py @@ -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() diff --git a/airgun/views/contentview_new.py b/airgun/views/contentview_new.py index 4d103a531..5def17d15 100644 --- a/airgun/views/contentview_new.py +++ b/airgun/views/contentview_new.py @@ -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(