diff mbox series

[v3,2/4] toaster/test: bug-fix "#hint-error-project-name" should be visible

Message ID 20240109162729.531311-2-alassane.yattara@savoirfairelinux.com
State New
Headers show
Series [v3,1/4] toaster/test: Setup delay after drvier action self.get(url) | expand

Commit Message

Alassane Yattara Jan. 9, 2024, 4:27 p.m. UTC
Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/142

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
---
 lib/toaster/tests/browser/test_new_project_page.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/toaster/tests/browser/test_new_project_page.py b/lib/toaster/tests/browser/test_new_project_page.py
index 70b55f3c..458bb653 100644
--- a/lib/toaster/tests/browser/test_new_project_page.py
+++ b/lib/toaster/tests/browser/test_new_project_page.py
@@ -79,6 +79,7 @@  class TestNewProjectPage(SeleniumTestCase):
 
         url = reverse('newproject')
         self.get(url)
+        self.wait_until_visible('#new-project-name', poll=3)
 
         self.enter_text('#new-project-name', project_name)
 
@@ -90,7 +91,8 @@  class TestNewProjectPage(SeleniumTestCase):
 
         self.click("#create-project-button")
 
-        element = self.wait_until_visible('#hint-error-project-name', poll=3)
+        self.wait_until_present('#hint-error-project-name', poll=3)
+        element = self.find('#hint-error-project-name')
 
         self.assertTrue(("Project names must be unique" in element.text),
                         "Did not find unique project name error message")