Skip to content

Commit

Permalink
Increase the test delays back, as they were before
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
badboywj committed Apr 23, 2024
1 parent 1219b4b commit 01332c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e_test/hawk_test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 01332c7

Please sign in to comment.