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): "import-project-dir").send_keys(wrong_path) self.driver.find_element(By.ID, "create-project-button").click() + self.wait_until_visible('.alert-danger') + # check error message self.assertTrue(self.element_exists('.alert-danger'), - 'Allert message not shown') + 'Alert message not shown') self.assertTrue(wrong_path in self.find('.alert-danger').text, "Wrong path not in alert message")