get selenium scenarios running again and add some scenarios for adding todos started

This commit is contained in:
Reinier Balt 2011-01-08 09:12:37 +01:00
parent 09830d044d
commit ab2e51a51a
17 changed files with 135 additions and 69 deletions

View file

@ -208,7 +208,11 @@ module TodosHelper
return false if source_view_is(:todo) && @todo.hidden?
return false if source_view_is(:context) && @todo.hidden? && !@todo.context.hidden?
return false if (source_view_is(:tag) && !@todo.tags.include?(@tag_name))
return true if source_view_is(:tag) && (
(@todo.pending? && @todo.tags.include?(@tag_name)) ||
@todo.tags.include?(@tag_name) ||
(@todo.starred? && @tag_name == Todo::STARRED_TAG_NAME))
return false if (source_view_is(:context) && !(@todo.context_id==@default_context.id) )
return true if source_view_is(:deferred) && @todo.deferred?
@ -217,9 +221,12 @@ module TodosHelper
return true if source_view_is(:project) && @todo.pending?
return true if !source_view_is(:deferred) && @todo.active?
return true if source_view_is(:tag) && @todo.pending?
return false
end
def should_add_new_context
return @new_context_created && !source_view_is(:project)
end
def parent_container_type
return 'tickler' if source_view_is :deferred