From 01332c7898fe04dc02bbb18eca5df65b5b13e0e2 Mon Sep 17 00:00:00 2001 From: Wang Jun Date: Fri, 19 Apr 2024 16:44:39 +0800 Subject: [PATCH] Increase the test delays back, as they were before The issue happened on 12-SP5 after updating the sleep time from the current master branch(commit: 1219b4b) in ClusterLabs https://openqa.suse.de/tests/14048367#step/hawk_gui/82 and everything worked well after changing the sleep time back. --- e2e_test/hawk_test_driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e_test/hawk_test_driver.py b/e2e_test/hawk_test_driver.py index ca5108583..ee346b587 100644 --- a/e2e_test/hawk_test_driver.py +++ b/e2e_test/hawk_test_driver.py @@ -195,12 +195,12 @@ def check_and_click_by_xpath(self, errmsg, xpath_exps): print(f"ERROR: Couldn't find element by xpath [{xpath}] {errmsg}") self.test_status = False return - time.sleep(1) + time.sleep(5) try: elem.click() except ElementNotInteractableException: # Element is obscured. Wait and click again - time.sleep(5 * self.timeout_scale) + time.sleep(10 * self.timeout_scale) elem.click() # Generic function to perform the tests @@ -465,7 +465,7 @@ def remove_rsc(self, name): print(f"INFO: Remove Resource: {name}") self.check_edit_conf() # resources list does load again after edit configuration page is loaded - time.sleep(5) + time.sleep(10) self.check_and_click_by_xpath(f"Cannot delete resource [{name}]", [Xpath.HREF_DELETE_FORMAT.format(name)]) time.sleep(2) self.check_and_click_by_xpath(f"Cannot confirm delete of resource [{name}]", [Xpath.COMMIT_BTN_DANGER])