[PATCH 1/3] toaster/test: Bug-fix on TestProjectConfigTab::test_image_recipe_show_rows

Alassane Yattara <[email protected]> Fri, 5 Jan 2024 15:22:16 +0100
Newsgroups org.yoctoproject.lists.toaster
Message-ID <[email protected]>
Check some rows are visible in table instead of compare table row to
row_to_show, because recipe image table sometime doesn't display full ava=
iblable
images

Signed-off-by: Alassane Yattara <[email protected]>
---
 lib/toaster/tests/functional/test_project_page_tab_config.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/toaster/tests/functional/test_project_page_tab_config.py=
 b/lib/toaster/tests/functional/test_project_page_tab_config.py
index ee1f5c4b..d027e0bc 100644
--- a/lib/toaster/tests/functional/test_project_page_tab_config.py
+++ b/lib/toaster/tests/functional/test_project_page_tab_config.py
@@ -254,8 +254,9 @@ class TestProjectConfigTab(SeleniumFunctionalTestCase=
):
             # Check that we can show rows =3D=3D row_to_show
             show_row_link.select_by_value(str(row_to_show))
             self.wait_until_visible('#imagerecipestable tbody tr')
+            # check at least some rows are visible
             self.assertTrue(
-                len(self.find_all('#imagerecipestable tbody tr')) =3D=3D=
 row_to_show
+                len(self.find_all('#imagerecipestable tbody tr'))  > 0
             )
=20
         self._navigate_to_project_page()
--=20
2.34.1