bitbake: toaster/tests/functional/basic: Improve the projects table selection to a common function

The project page selection code is race prone. Create a common function to resolve
the race issue and use it from all the call sites rather than duplicate code.

(Bitbake rev: f2bd615b97a6ff3944fa9c1d89a0ea996a12943d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2024-10-18 13:30:08 +01:00
parent 4d9ad3bb8e
commit d17f42ec12
2 changed files with 14 additions and 7 deletions

View File

@@ -216,3 +216,9 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
'The project release is not defined')
return project_id
def load_projects_page_helper(self):
self.wait_until_present('#projectstable')
# Need to wait for some data in the table too
self.wait_until_present('td[class="updated"]')