This commit is contained in:
Reinier Balt 2011-04-19 17:22:23 +02:00
parent af4489ff6e
commit 5664c9a64d
3 changed files with 17 additions and 1 deletions

View file

@ -128,6 +128,16 @@ Feature: Add new next action from every page
When I go to the "another project" project
Then I should see "can you see me?"
@selenium
Scenario: Adding a deferred todo to another project does not show the todo
# scenario for #1146
Given I have a project called "another project"
When I go to the "test project" project
And I submit a deferred new action with description "a new next action" to project "another project" in the context "test context"
Then I should not see "a new next action"
And I submit a deferred new action with description "another new next action" to project "test project" in the context "test context"
Then I should see "another new next action"
@selenium
Scenario Outline: Adding a todo with a new context shows the new context
When I go to the <page>

View file

@ -38,6 +38,10 @@ When /^I submit a new deferred action with description "([^"]*)" to project "([^
submit_next_action_form
end
When /^I submit a deferred new action with description "([^"]*)" to project "([^"]*)" in the context "([^"]*)"$/ do |description, project_name, context_name|
When "I submit a new deferred action with description \"#{description}\" to project \"#{project_name}\" with tags \"\" in the context \"#{context_name}\""
end
When /^I submit a new action with description "([^"]*)" to project "([^"]*)" with tags "([^"]*)" in the context "([^"]*)"$/ do |description, project_name, tags, context_name|
fill_in "todo[description]", :with => description