From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AA034E009BF; Fri, 17 Jun 2016 02:59:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [46.232.183.161 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 1030 seconds by postgrey-1.32 at yocto-www; Fri, 17 Jun 2016 02:58:57 PDT Received: from swiss-egress-1.mailchannels.ch (nov-007-i607.relay.mailchannels.net [46.232.183.161]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CB99CE00874 for ; Fri, 17 Jun 2016 02:58:56 -0700 (PDT) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1B364120260; Fri, 17 Jun 2016 09:41:32 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-21-3-36.us-west-2.compute.internal [10.21.3.36]) by relay.mailchannels.net (Postfix) with ESMTPA id 6B3C6120A4A; Fri, 17 Jun 2016 09:41:31 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.21.150.52]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.14); Fri, 17 Jun 2016 09:41:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1466156491701:1984166743 X-MC-Ingress-Time: 1466156491701 Received: from [176.251.19.34] (port=39974 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bDqJU-00072F-N8; Fri, 17 Jun 2016 05:43:44 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 17 Jun 2016 10:41:24 +0100 Message-Id: <1466156485-11058-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 2.7.4 X-AuthUser: elliot@townx.org Subject: [PATCH 1/2] toaster-tests: remove click on disabled element in test X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 09:59:02 -0000 On Firefox 47, attempting to click on the "Submit" button in the test which attempts to create a project with a duplicate name fails, as the button is not enabled if the name is a duplicate. This also causes the test to fail. Remove the call to the click() method which causes the test to fail. Signed-off-by: Elliot Smith --- bitbake/lib/toaster/tests/browser/test_new_project_page.py | 8 ++------ 1 file changed, 2 insertions(+), 6 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 1b038ac..180a690 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_project_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_project_page.py @@ -80,7 +80,7 @@ class TestNewProjectPage(SeleniumTestCase): """ Should not be able to create a new project whose name is the same as an existing project - """ + """ project_name = "dupproject" @@ -100,10 +100,6 @@ class TestNewProjectPage(SeleniumTestCase): self.assertTrue(("Project names must be unique" in element.text), "Did not find unique project name error message") - # Try and click it anyway, if it submits we'll have a new project in - # the db and assert then - self.click("#create-project-button") - self.assertTrue( (Project.objects.filter(name=project_name).count() == 1), - "New project not found in database") + "New project not found in database") \ No newline at end of file -- 2.7.4