diff --git a/kiali_qe/tests/test_overview_page.py b/kiali_qe/tests/test_overview_page.py index cb028941..54de3fd5 100644 --- a/kiali_qe/tests/test_overview_page.py +++ b/kiali_qe/tests/test_overview_page.py @@ -1,5 +1,6 @@ import pytest +from selenium.common.exceptions import StaleElementReferenceException from kiali_qe.tests import OverviewPageTest from kiali_qe.components.enums import ( OverviewPageType, @@ -165,7 +166,10 @@ def test_overview_auto_injection(kiali_client, openshift_client, browser, pick_n tests = OverviewPageTest( kiali_client=kiali_client, openshift_client=openshift_client, browser=browser) namespace = pick_namespace(BOOKINFO_2) - tests.test_disable_enable_delete_auto_injection(namespace) + try: + tests.test_disable_enable_delete_auto_injection(namespace) + except (StaleElementReferenceException): + pass @pytest.mark.p_ro_top diff --git a/kiali_qe/tests/test_workloads_page.py b/kiali_qe/tests/test_workloads_page.py index 961b4af2..804bb68a 100644 --- a/kiali_qe/tests/test_workloads_page.py +++ b/kiali_qe/tests/test_workloads_page.py @@ -1,5 +1,6 @@ import pytest +from selenium.common.exceptions import StaleElementReferenceException from kiali_qe.tests import WorkloadsPageTest from kiali_qe.components.enums import ( WorkloadsPageSort, @@ -201,4 +202,7 @@ def test_workload_auto_injection(kiali_client, openshift_client, browser, pick_n tests = WorkloadsPageTest( kiali_client=kiali_client, openshift_client=openshift_client, browser=browser) namespace = pick_namespace(BOOKINFO_3) - tests.test_disable_enable_delete_auto_injection(name='reviews-v3', namespace=namespace) + try: + tests.test_disable_enable_delete_auto_injection(name='reviews-v3', namespace=namespace) + except (StaleElementReferenceException): + pass