bitbake: toaster/tests: bug-fix "#hint-error-project-name" should be visible

Failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/161/builds/142

(Bitbake rev: 0ee5f4e06476b0ec2f5ea8c9f05d299ddda6312b)

Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alassane Yattara
2024-01-09 14:54:07 +01:00
committed by Richard Purdie
parent 49ccf2f5e0
commit c0ade693af

View File

@@ -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")