Add selenium test case to test problem reported in #533.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@563 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-07-10 04:16:08 +00:00
parent 33d7341b6d
commit 1280ab7665
3 changed files with 19 additions and 2 deletions

View file

@ -104,3 +104,12 @@ waitingfor_otheruser:
user_id: 2
created_at: <%= today %>
updated_at: <%= today %>
someday_maybe:
id: 12
name: someday maybe
position: 10
hide: true
user_id: 1
created_at: <%= today %>
updated_at: <%= today %>

View file

@ -53,7 +53,7 @@ class ContextsControllerTest < TodoContainerControllerTestBase
assert_select 'language', 'en-us'
assert_select 'ttl', '40'
end
assert_select 'item', 9 do
assert_select 'item', 10 do
assert_select 'title', /.+/
assert_select 'description' do
assert_select_encoded do
@ -95,7 +95,7 @@ class ContextsControllerTest < TodoContainerControllerTestBase
assert_xml_select 'feed[xmlns="http://www.w3.org/2005/Atom"]' do
assert_select '>title', 'Tracks Contexts'
assert_select '>subtitle', "Lists all the contexts for #{users(:admin_user).display_name}"
assert_select 'entry', 9 do
assert_select 'entry', 10 do
assert_select 'title', /.+/
assert_select 'content[type="html"]' do
assert_select_encoded do

View file

@ -0,0 +1,8 @@
setup :fixtures => :all
login :as => 'admin'
open "/"
click "edit_icon_todo_12"
wait_for_visible "context_name_todo_12"
type "context_name_todo_12", "someday maybe"
click "submit_todo_12"
wait_for_element_not_present "todo_12"