From 6d8d066b3ea139fb630d38d4a2e56efd53540e12 Mon Sep 17 00:00:00 2001 From: lrbalt Date: Fri, 14 Mar 2008 15:24:27 +0000 Subject: [PATCH] fixes selenium test for mobile new action which incorrectly tried to set a due date in the past. Also add a test for tags with dots related to [734] and #655 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@739 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/test/functional/todos_controller_test.rb | 8 ++++---- tracks/test/selenium/mobile/create_new_action.rsel | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tracks/test/functional/todos_controller_test.rb b/tracks/test/functional/todos_controller_test.rb index a3c27859..db78c44e 100644 --- a/tracks/test/functional/todos_controller_test.rb +++ b/tracks/test/functional/todos_controller_test.rb @@ -157,15 +157,15 @@ class TodosControllerTest < Test::Rails::TestCase assert_equal true, t.tag_list.empty? end - def test_update_todo_tags_with_whitespace + def test_update_todo_tags_with_whitespace_and_dots t = Todo.find(1) login_as(:admin_user) - taglist = " one , two,three ,four" + taglist = " one , two,three ,four, 8.1.2, version1.5" xhr :post, :update, :id => 1, :_source_view => 'todo', "todo"=>{"context_id"=>"1", "project_id"=>"2", "id"=>"1", "notes"=>"", "description"=>"Call Warren Buffet to find out how much he makes per day", "due"=>"30/11/2006"}, "tag_list"=>taglist t = Todo.find(1) - assert_equal "one, two, three, four", t.tag_list + assert_equal "one, two, three, four, 8.1.2, version1.5", t.tag_list end - + def test_find_tagged_with login_as(:admin_user) @user = User.find(@request.session['user_id']) diff --git a/tracks/test/selenium/mobile/create_new_action.rsel b/tracks/test/selenium/mobile/create_new_action.rsel index 613823b3..bbb77831 100644 --- a/tracks/test/selenium/mobile/create_new_action.rsel +++ b/tracks/test/selenium/mobile/create_new_action.rsel @@ -12,7 +12,7 @@ select "todo_context_id", "label=call" select "todo_project_id", "label=Make more money than Billy Gates" select "todo_due_3i", "label=1" select "todo_due_2i", "label=January" -select "todo_due_1i", "label=2007" +select "todo_due_1i", "label=2009" click_and_wait "//input[@value='Create']" wait_for_text 'css=h1 span.count', '11'