From 3cd6e9ec849885564bc437a98f7952ce7cb9152c Mon Sep 17 00:00:00 2001 From: wojtekzyla <108660584+wojtekzyla@users.noreply.github.com> Date: Thu, 23 May 2024 14:42:54 +0200 Subject: [PATCH] fix: fix wring log message in UI tests and change sleep time in UI tests (#1022) --- ui_tests/pages/profiles_page.py | 2 +- ui_tests/tests/test_splunk_integration.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui_tests/pages/profiles_page.py b/ui_tests/pages/profiles_page.py index 7d571e562..d56bdda42 100644 --- a/ui_tests/pages/profiles_page.py +++ b/ui_tests/pages/profiles_page.py @@ -56,7 +56,7 @@ def set_frequency(self, freq_value): freq_field.send_keys(freq_value) def set_profile_name(self, name): - logger.info(f"Setting profile frequency: {name}") + logger.info(f"Setting profile name: {name}") xpath = "//div[@data-test='sc4snmp:form:profile-name-input']//span//input" name_input = driver.find_element(By.XPATH, xpath) helper.clear_input(name_input) # this is useful when editing profile name diff --git a/ui_tests/tests/test_splunk_integration.py b/ui_tests/tests/test_splunk_integration.py index cd5621e3e..c864d1f2f 100644 --- a/ui_tests/tests/test_splunk_integration.py +++ b/ui_tests/tests/test_splunk_integration.py @@ -387,7 +387,7 @@ def test_setting_host_in_inventory(setup): p_header.apply_changes() time_to_upgrade = p_header.get_time_to_upgrade() p_header.close_configuration_applied_notification_popup() - time.sleep(time_to_upgrade + 90) # wait for upgrade + walk time + polling + time.sleep(time_to_upgrade + 70) # wait for upgrade + walk time + polling # check walk scheduled search_query = f'index={config.LOGS_INDEX} "Sending due task sc4snmp;{host};walk"'