From 3dc0aaa3978e4e3109b1f3cd4ed22234076971d9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 9 Oct 2024 17:43:15 +0100 Subject: 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 --- bitbake/lib/toaster/tests/functional/test_create_new_project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/toaster') 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") -- cgit v1.2.3-54-g00ecf