diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-22 23:41:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-24 11:24:03 +0100 |
commit | 0fac8e96f73dc3cd885f2590615e0e52aab42786 (patch) | |
tree | 2aa5458749e8aa154b42e41d44b6c6148ee15188 /bitbake/lib | |
parent | 6ee37562d4e1a601bac60b02b798fc12fec1a745 (diff) | |
download | poky-0fac8e96f73dc3cd885f2590615e0e52aab42786.tar.gz |
bitbake: toaster/tests/browser/layerdetails: Drop unwanted test skipping/exception handling
We really don't want to be skipping a test like this, drop the exception handling
code as in my testing we thankfully no longer seem to be seeing it. If we do again
we need to fix the underlying issue.
(Bitbake rev: b67547f890dc7f347ec05a97cbfb22d3703998cc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_layerdetails_page.py | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py b/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py index a6d1bc46c2..69493833f4 100644 --- a/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py +++ b/bitbake/lib/toaster/tests/browser/test_layerdetails_page.py | |||
@@ -64,7 +64,7 @@ class TestLayerDetailsPage(SeleniumTestCase): | |||
64 | args=(self.project.pk, | 64 | args=(self.project.pk, |
65 | self.imported_layer_version.pk)) | 65 | self.imported_layer_version.pk)) |
66 | 66 | ||
67 | def _edit_layerdetails(self): | 67 | def test_edit_layerdetails_page(self): |
68 | """ Edit all the editable fields for the layer refresh the page and | 68 | """ Edit all the editable fields for the layer refresh the page and |
69 | check that the new values exist""" | 69 | check that the new values exist""" |
70 | 70 | ||
@@ -107,17 +107,10 @@ class TestLayerDetailsPage(SeleniumTestCase): | |||
107 | for save_btn in self.find_all(".change-btn"): | 107 | for save_btn in self.find_all(".change-btn"): |
108 | save_btn.click() | 108 | save_btn.click() |
109 | 109 | ||
110 | try: | 110 | self.wait_until_visible("#save-changes-for-switch") |
111 | self.wait_until_visible("#save-changes-for-switch") | 111 | btn_save_chg_for_switch = self.wait_until_clickable( |
112 | btn_save_chg_for_switch = self.wait_until_clickable( | 112 | "#save-changes-for-switch") |
113 | "#save-changes-for-switch") | 113 | btn_save_chg_for_switch.click() |
114 | btn_save_chg_for_switch.click() | ||
115 | except ElementClickInterceptedException: | ||
116 | self.skipTest( | ||
117 | "save-changes-for-switch click intercepted. Element not visible or maybe covered by another element.") | ||
118 | except TimeoutException: | ||
119 | self.skipTest( | ||
120 | "save-changes-for-switch is not clickable within the specified timeout.") | ||
121 | 114 | ||
122 | self.wait_until_visible("#edit-layer-source") | 115 | self.wait_until_visible("#edit-layer-source") |
123 | 116 | ||
@@ -147,17 +140,10 @@ class TestLayerDetailsPage(SeleniumTestCase): | |||
147 | new_dir = "/home/test/my-meta-dir" | 140 | new_dir = "/home/test/my-meta-dir" |
148 | dir_input.send_keys(new_dir) | 141 | dir_input.send_keys(new_dir) |
149 | 142 | ||
150 | try: | 143 | self.wait_until_visible("#save-changes-for-switch") |
151 | self.wait_until_visible("#save-changes-for-switch") | 144 | btn_save_chg_for_switch = self.wait_until_clickable( |
152 | btn_save_chg_for_switch = self.wait_until_clickable( | 145 | "#save-changes-for-switch") |
153 | "#save-changes-for-switch") | 146 | btn_save_chg_for_switch.click() |
154 | btn_save_chg_for_switch.click() | ||
155 | except ElementClickInterceptedException: | ||
156 | self.skipTest( | ||
157 | "save-changes-for-switch click intercepted. Element not properly visible or maybe behind another element.") | ||
158 | except TimeoutException: | ||
159 | self.skipTest( | ||
160 | "save-changes-for-switch is not clickable within the specified timeout.") | ||
161 | 147 | ||
162 | self.wait_until_visible("#edit-layer-source") | 148 | self.wait_until_visible("#edit-layer-source") |
163 | 149 | ||
@@ -168,12 +154,6 @@ class TestLayerDetailsPage(SeleniumTestCase): | |||
168 | "Expected %s in the dir value for layer directory" % | 154 | "Expected %s in the dir value for layer directory" % |
169 | new_dir) | 155 | new_dir) |
170 | 156 | ||
171 | def test_edit_layerdetails_page(self): | ||
172 | try: | ||
173 | self._edit_layerdetails() | ||
174 | except ElementClickInterceptedException: | ||
175 | self.skipTest( | ||
176 | "ElementClickInterceptedException occured. Element not visible or maybe covered by another element.") | ||
177 | 157 | ||
178 | def test_delete_layer(self): | 158 | def test_delete_layer(self): |
179 | """ Delete the layer """ | 159 | """ Delete the layer """ |