diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-09 17:43:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-09 18:25:34 +0100 |
| commit | 3dc0aaa3978e4e3109b1f3cd4ed22234076971d9 (patch) | |
| tree | fe3727e0c3a8ab016a8f8a7508cebda3a2b33963 | |
| parent | 7622becfef4e9a83f8745ddab5bea94a6daa4a4b (diff) | |
| download | poky-3dc0aaa3978e4e3109b1f3cd4ed22234076971d9.tar.gz | |
bitbake: toaster/tests/functional: Fix test race on alert
THe test fails on faster systems as we need to wait. Fix that and
a typo.
(Bitbake rev: 749b561196b0b1b388051b345fee2efb6ce68ff7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/toaster/tests/functional/test_create_new_project.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/functional/test_create_new_project.py b/bitbake/lib/toaster/tests/functional/test_create_new_project.py index c3b5679514..f7d17847ae 100644 --- a/bitbake/lib/toaster/tests/functional/test_create_new_project.py +++ b/bitbake/lib/toaster/tests/functional/test_create_new_project.py | |||
| @@ -172,8 +172,10 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): | |||
| 172 | "import-project-dir").send_keys(wrong_path) | 172 | "import-project-dir").send_keys(wrong_path) |
| 173 | self.driver.find_element(By.ID, "create-project-button").click() | 173 | self.driver.find_element(By.ID, "create-project-button").click() |
| 174 | 174 | ||
| 175 | self.wait_until_visible('.alert-danger') | ||
| 176 | |||
| 175 | # check error message | 177 | # check error message |
| 176 | self.assertTrue(self.element_exists('.alert-danger'), | 178 | self.assertTrue(self.element_exists('.alert-danger'), |
| 177 | 'Allert message not shown') | 179 | 'Alert message not shown') |
| 178 | self.assertTrue(wrong_path in self.find('.alert-danger').text, | 180 | self.assertTrue(wrong_path in self.find('.alert-danger').text, |
| 179 | "Wrong path not in alert message") | 181 | "Wrong path not in alert message") |
