diff --git a/ocs_ci/ocs/ui/page_objects/odf_topology_tab.py b/ocs_ci/ocs/ui/page_objects/odf_topology_tab.py index 850670bbdc0..46f342f612c 100644 --- a/ocs_ci/ocs/ui/page_objects/odf_topology_tab.py +++ b/ocs_ci/ocs/ui/page_objects/odf_topology_tab.py @@ -43,7 +43,6 @@ def is_alert_tab_present(self) -> bool: return bool(self.get_elements(self.topology_loc["alerts_sidebar_tab"])) def open_side_bar_of_entity(self, entity_name: str = None, canvas: bool = False): - """ Opens the sidebar of an entity in the topology view. @@ -111,7 +110,9 @@ def is_node_down_alert_in_alerts_ui(self, entity=None, read_canvas_alerts=False) Returns: bool: if the node down alert visible in Alerts tab of the Topology """ - alerts_dict = self.read_alerts_procedure(entity, read_canvas_alerts) + alerts_dict = retry(TimeoutException, tries=3, delay=5)( + self.read_alerts_procedure + )(entity, read_canvas_alerts) return ( "Critical" in alerts_dict and constants.ALERT_NODEDOWN in alerts_dict["Critical"] diff --git a/tests/cross_functional/ui/test_odf_topology.py b/tests/cross_functional/ui/test_odf_topology.py index d0555b228d8..a4ffc78f10c 100644 --- a/tests/cross_functional/ui/test_odf_topology.py +++ b/tests/cross_functional/ui/test_odf_topology.py @@ -51,8 +51,8 @@ def finalizer_wait_cluster_healthy(): """ ceph_health_check(tries=60, delay=30) - request.addfinalizer(finalizer_restart_nodes_by_stop_and_start_teardown) request.addfinalizer(finalizer_wait_cluster_healthy) + request.addfinalizer(finalizer_restart_nodes_by_stop_and_start_teardown) @pytest.fixture()