diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_new_project_page.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_new_project_page.py b/bitbake/lib/toaster/tests/browser/test_new_project_page.py index 1b038acb96..77e5f15267 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_project_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_project_page.py | |||
@@ -22,6 +22,7 @@ | |||
22 | from django.core.urlresolvers import reverse | 22 | from django.core.urlresolvers import reverse |
23 | from tests.browser.selenium_helpers import SeleniumTestCase | 23 | from tests.browser.selenium_helpers import SeleniumTestCase |
24 | from selenium.webdriver.support.ui import Select | 24 | from selenium.webdriver.support.ui import Select |
25 | from selenium.common.exceptions import InvalidElementStateException | ||
25 | 26 | ||
26 | from orm.models import Project, Release, BitbakeVersion | 27 | from orm.models import Project, Release, BitbakeVersion |
27 | 28 | ||
@@ -102,7 +103,10 @@ class TestNewProjectPage(SeleniumTestCase): | |||
102 | 103 | ||
103 | # Try and click it anyway, if it submits we'll have a new project in | 104 | # Try and click it anyway, if it submits we'll have a new project in |
104 | # the db and assert then | 105 | # the db and assert then |
105 | self.click("#create-project-button") | 106 | try: |
107 | self.click("#create-project-button") | ||
108 | except InvalidElementStateException: | ||
109 | pass | ||
106 | 110 | ||
107 | self.assertTrue( | 111 | self.assertTrue( |
108 | (Project.objects.filter(name=project_name).count() == 1), | 112 | (Project.objects.filter(name=project_name).count() == 1), |