Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the test delays as they were before #277

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading