You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/03/22 23:54:33 UTC
[06/21] git commit: [#4299] ticket:281 Fix tests failing due to new
ajax widget
[#4299] ticket:281 Fix tests failing due to new ajax widget
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/6c4eaa61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/6c4eaa61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/6c4eaa61
Branch: refs/heads/master
Commit: 6c4eaa6180fa161dd6770da86fc1611af706b572
Parents: 967e105
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Mar 4 16:09:31 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Fri Mar 22 21:55:16 2013 +0000
----------------------------------------------------------------------
.../forgetracker/tests/functional/test_root.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6c4eaa61/ForgeTracker/forgetracker/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py b/ForgeTracker/forgetracker/tests/functional/test_root.py
index a7ffc20..35b7014 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -206,9 +206,10 @@ class TestFunctionalController(TrackerTestController):
response = self.app.get('/bugs/new/')
form = response.forms[1]
form['ticket_form.summary'] = 'test new ticket form'
- form['ticket_form.assigned_to'] = 'test_admin'
+ form['ticket_form.description'] = 'test new ticket form description'
response = form.submit().follow()
- assert 'Test Admin' in response
+ assert 'test new ticket form' in response
+ assert 'test new ticket form description' in response
def test_mass_edit(self):
ticket_view = self.new_ticket(summary='First Ticket').follow()
@@ -532,7 +533,7 @@ class TestFunctionalController(TrackerTestController):
self.new_ticket(summary=summary)
response = self.app.get('/p/test/bugs/1/')
assert response.html.find('input', {'name': 'ticket_form.summary'})
- assert response.html.find('input', {'name': 'ticket_form.assigned_to'})
+ assert response.html.find('select', {'name': 'ticket_form.assigned_to'})
assert response.html.find('textarea', {'name': 'ticket_form.description'})
assert response.html.find('select', {'name': 'ticket_form.status'})
assert response.html.find('select', {'name': 'ticket_form._milestone'})