aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/tests/functional/test_project_page.py
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2024-01-09 17:30:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-10 13:54:46 +0000
commit5b0a48265aafa62259c575707c3afa6dd56f8008 (patch)
treee83f2b7e9a4cdb6f55dc5bd6d748b442e9b8da59 /lib/toaster/tests/functional/test_project_page.py
parent187e96eb7393632f28a195f280fa133439bdc0fa (diff)
downloadbitbake-5b0a48265aafa62259c575707c3afa6dd56f8008.tar.gz
toaster/tests: Bug-fix ToasterTable show_rows testcases
Test if some rows are visible in table instead of compare row to row_to_show, because sometime full avaiblable content did not display Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/147/steps/12/logs/stdio Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/tests/functional/test_project_page.py')
-rw-r--r--lib/toaster/tests/functional/test_project_page.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/toaster/tests/functional/test_project_page.py b/lib/toaster/tests/functional/test_project_page.py
index 31177cc1f..adbe3587e 100644
--- a/lib/toaster/tests/functional/test_project_page.py
+++ b/lib/toaster/tests/functional/test_project_page.py
@@ -192,9 +192,10 @@ class TestProjectPage(SeleniumFunctionalTestCase):
def test_show_rows(row_to_show, show_row_link):
# Check that we can show rows == row_to_show
show_row_link.select_by_value(str(row_to_show))
- self.wait_until_visible(f'#{table_selector} tbody tr', poll=2)
+ self.wait_until_visible(f'#{table_selector} tbody tr', poll=3)
+ # check at least some rows are visible
self.assertTrue(
- len(self.find_all(f'#{table_selector} tbody tr')) == row_to_show
+ len(self.find_all(f'#{table_selector} tbody tr')) > 0
)
self.wait_until_present(f'#{table_selector} tbody tr')
show_rows = self.driver.find_elements(