summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/tests/browser/test_new_project_page.py6
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 @@
22from django.core.urlresolvers import reverse 22from django.core.urlresolvers import reverse
23from tests.browser.selenium_helpers import SeleniumTestCase 23from tests.browser.selenium_helpers import SeleniumTestCase
24from selenium.webdriver.support.ui import Select 24from selenium.webdriver.support.ui import Select
25from selenium.common.exceptions import InvalidElementStateException
25 26
26from orm.models import Project, Release, BitbakeVersion 27from 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),