From 00ee4d1e6b2503b75dca685005958b580051a56f Mon Sep 17 00:00:00 2001 From: David Moore Date: Mon, 21 Oct 2024 09:30:14 -0400 Subject: [PATCH] fixup --- airgun/entities/contentview_new.py | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/airgun/entities/contentview_new.py b/airgun/entities/contentview_new.py index 53c49b452..dd030a806 100644 --- a/airgun/entities/contentview_new.py +++ b/airgun/entities/contentview_new.py @@ -75,8 +75,19 @@ def delete(self, entity_name): view.delete_finish.click() def delete_version(self, entity_name, version): - """Deletes the specified version of the content view""" - view = self.navigate_to(self, 'Version', entity_name=entity_name, version=version) + """Deletes the specified version of the content view + :return: bool, + True if specified version was found and clicked 'Delete' + False (default) if not found in table by version name + """ + result = False + view = self.navigate_to( + self, + 'Version', + entity_name=entity_name, + version=version, + timeout=60, + ) self.browser.plugin.ensure_page_safe(timeout='10s') view.wait_displayed() result = view.version_dropdown.item_select('Delete') @@ -129,7 +140,13 @@ def read_repositories(self, entity_name): def read_version_table(self, entity_name, version, tab_name, search_param=None): """Reads a specific table for a CV Version""" - view = self.navigate_to(self, 'Version', entity_name=entity_name, version=version) + view = self.navigate_to( + self, + 'Version', + entity_name=entity_name, + version=version, + timeout=60, + ) self.browser.plugin.ensure_page_safe(timeout='5s') view.wait_displayed() # This allows dynamic access to the proper table @@ -292,7 +309,9 @@ def prerequisite(self, *args, **kwargs): def step(self, *args, **kwargs): version = kwargs.get('version') + self.parent.versions.wait_displayed() self.parent.versions.search(version) + self.parent.versions.table.wait_displayed() self.parent.versions.table.row(version=version)['Version'].widget.click()