diff options
| author | Alassane Yattara <alassane.yattara@savoirfairelinux.com> | 2023-11-09 23:14:56 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 22:52:42 +0000 |
| commit | 36871610c310f85240d02fd156cd8d981352f55a (patch) | |
| tree | d51ba504a9245700f1ad5059c96fcba4b41bc44c /bitbake | |
| parent | b4e16b96e12179f790c6101a66b4af164da6bfd4 (diff) | |
| download | poky-36871610c310f85240d02fd156cd8d981352f55a.tar.gz | |
bitbake: Toaster: Test create new project without project name
(Bitbake rev: 2670bacd5b2865ed825d24c96ecd12940218b65e)
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/toaster/tests/functional/test_create_new_project.py | 17 |
1 files changed, 17 insertions, 0 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 81355eaf04..f33eb16dd0 100644 --- a/bitbake/lib/toaster/tests/functional/test_create_new_project.py +++ b/bitbake/lib/toaster/tests/functional/test_create_new_project.py | |||
| @@ -132,3 +132,20 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): | |||
| 132 | release_title, | 132 | release_title, |
| 133 | True, | 133 | True, |
| 134 | ) | 134 | ) |
| 135 | |||
| 136 | def test_create_new_project_without_name(self): | ||
| 137 | """ Test create new project without project name """ | ||
| 138 | self.get(reverse('newproject')) | ||
| 139 | |||
| 140 | select = Select(self.find('#projectversion')) | ||
| 141 | select.select_by_value(str(3)) | ||
| 142 | |||
| 143 | # Check input name has required attribute | ||
| 144 | input_name = self.driver.find_element(By.ID, "new-project-name") | ||
| 145 | self.assertIsNotNone(input_name.get_attribute('required'), | ||
| 146 | 'Input name has not required attribute') | ||
| 147 | |||
| 148 | # Check create button is disabled | ||
| 149 | create_btn = self.driver.find_element(By.ID, "create-project-button") | ||
| 150 | self.assertIsNotNone(create_btn.get_attribute('disabled'), | ||
| 151 | 'Create button is not disabled') | ||
