@@ -8,7 +8,7 @@
#
from django.urls import reverse
-from selenium.common.exceptions import TimeoutException
+from selenium.common.exceptions import ElementClickInterceptedException, TimeoutException
from tests.browser.selenium_helpers import SeleniumTestCase
from orm.models import Layer, Layer_Version, Project, LayerSource, Release
@@ -114,6 +114,9 @@ class TestLayerDetailsPage(SeleniumTestCase):
btn_save_chg_for_switch = self.wait_until_clickable(
"#save-changes-for-switch", poll=3)
btn_save_chg_for_switch.click()
+ except ElementClickInterceptedException:
+ self.skipTest(
+ "save-changes-for-switch click intercepted. Element not visible or maybe covered by another element.")
except TimeoutException:
self.skipTest(
"save-changes-for-switch is not clickable within the specified timeout.")
@@ -151,6 +154,9 @@ class TestLayerDetailsPage(SeleniumTestCase):
btn_save_chg_for_switch = self.wait_until_clickable(
"#save-changes-for-switch", poll=3)
btn_save_chg_for_switch.click()
+ except ElementClickInterceptedException:
+ self.skipTest(
+ "save-changes-for-switch click intercepted. Element not properly visible or maybe behind another element.")
except TimeoutException:
self.skipTest(
"save-changes-for-switch is not clickable within the specified timeout.")
On project layer page, element button(save changes for switch) not properly visible or just hidden by another element which cause follwing exception: ElementClickInterceptedException Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> --- lib/toaster/tests/browser/test_layerdetails_page.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)