Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 45BF2E00DF1; Fri, 17 Jun 2016 08:49:29 -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 * [23.83.214.10 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from gt-egress-002.mailchannels.net (barb.maple.relay.mailchannels.net [23.83.214.10]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 697CEE00DDE for ; Fri, 17 Jun 2016 08:49:27 -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 BB9BF10010C; Fri, 17 Jun 2016 15:49:24 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-220-9-73.us-west-2.compute.internal [10.220.9.73]) by relay.mailchannels.net (Postfix) with ESMTPA id DF0551000FB; Fri, 17 Jun 2016 15:49:23 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com ([TEMPUNAVAIL]. [10.223.11.100]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.14); Fri, 17 Jun 2016 15:49:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1466178564303:1821403164 X-MC-Ingress-Time: 1466178564303 Received: from [176.251.19.34] (port=53858 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bDw3Q-0006X7-JU; Fri, 17 Jun 2016 11:51:32 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 17 Jun 2016 16:49:11 +0100 Message-Id: <1466178552-3642-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][v2] 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 15:49:29 -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