diff options
author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2024-01-09 14:54:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-10 13:55:33 +0000 |
commit | 49ccf2f5e01cc98c25424b8d9326b4eaf6c8bdd7 (patch) | |
tree | 81f08cb1e1d439375f04457f712cbc15a313d13b /bitbake/lib/toaster/tests/browser/test_all_builds_page.py | |
parent | 0d93308425fd1e668dc43bcfe4b282289a30506a (diff) | |
download | poky-49ccf2f5e01cc98c25424b8d9326b4eaf6c8bdd7.tar.gz |
bitbake: toaster/tests: Setup delay after driver action self.get(url)
Recurring test failures result from insufficient delays in driver actions.
(Bitbake rev: b0de2a61d14fbf30e338751b285b3bab80192275)
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_all_builds_page.py')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_all_builds_page.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py index 7019b3dbec..ab6da821ba 100644 --- a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py +++ b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py | |||
@@ -224,6 +224,7 @@ class TestAllBuildsPage(SeleniumTestCase): | |||
224 | 224 | ||
225 | url = reverse('all-builds') | 225 | url = reverse('all-builds') |
226 | self.get(url) | 226 | self.get(url) |
227 | self.wait_until_visible('#allbuildstable', poll=3) | ||
227 | 228 | ||
228 | # get the project name cells from the table | 229 | # get the project name cells from the table |
229 | cells = self.find_all('#allbuildstable td[class="project"]') | 230 | cells = self.find_all('#allbuildstable td[class="project"]') |
@@ -232,7 +233,7 @@ class TestAllBuildsPage(SeleniumTestCase): | |||
232 | 233 | ||
233 | for cell in cells: | 234 | for cell in cells: |
234 | content = cell.get_attribute('innerHTML') | 235 | content = cell.get_attribute('innerHTML') |
235 | help_icons = cell.find_elements_by_css_selector(selector) | 236 | help_icons = cell.find_elements(By.CSS_SELECTOR, selector) |
236 | 237 | ||
237 | if re.search(self.PROJECT_NAME, content): | 238 | if re.search(self.PROJECT_NAME, content): |
238 | # no help icon next to non-cli project name | 239 | # no help icon next to non-cli project name |
@@ -256,6 +257,7 @@ class TestAllBuildsPage(SeleniumTestCase): | |||
256 | 257 | ||
257 | url = reverse('all-builds') | 258 | url = reverse('all-builds') |
258 | self.get(url) | 259 | self.get(url) |
260 | self.wait_until_visible('#allbuildstable', poll=3) | ||
259 | 261 | ||
260 | # test recent builds area for successful build | 262 | # test recent builds area for successful build |
261 | element = self._get_build_time_element(build1) | 263 | element = self._get_build_time_element(build1) |