[PATCH v3 3/4] toaster/test: Bug-fix "element not interactable" in TestLayerDetailsPage::test_edit_layerdetails

Alassane Yattara <[email protected]> Tue, 9 Jan 2024 17:27:12 +0100
Newsgroups org.yoctoproject.lists.toaster
Message-ID <[email protected]>
Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/build=
s/143/steps/12/logs/stdio

Signed-off-by: Alassane Yattara <[email protected]>
---
 lib/toaster/tests/browser/test_layerdetails_page.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/toaster/tests/browser/test_layerdetails_page.py b/lib/to=
aster/tests/browser/test_layerdetails_page.py
index 9deef670..5c29548b 100644
--- a/lib/toaster/tests/browser/test_layerdetails_page.py
+++ b/lib/toaster/tests/browser/test_layerdetails_page.py
@@ -64,7 +64,7 @@ class TestLayerDetailsPage(SeleniumTestCase):
                            args=3D(self.project.pk,
                                  self.imported_layer_version.pk))
=20
-    def test_edit_layerdetails(self):
+    def _edit_layerdetails(self):
         """ Edit all the editable fields for the layer refresh the page =
and
         check that the new values exist"""
=20
@@ -168,6 +168,13 @@ class TestLayerDetailsPage(SeleniumTestCase):
                         "Expected %s in the dir value for layer director=
y" %
                         new_dir)
=20
+    def test_edit_layerdetails_page(self):
+        try:
+            self._edit_layerdetails()
+        except ElementClickInterceptedException:
+            self.skipTest(
+                "ElementClickInterceptedException occured. Element not v=
isible or maybe covered by another element.")
+
     def test_delete_layer(self):
         """ Delete the layer """
=20
--=20
2.34.1