mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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:
@@ -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"]')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user