mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
add more cucumber scenarios
This commit is contained in:
parent
b40998e0bc
commit
ef961188ea
12 changed files with 190 additions and 71 deletions
|
|
@ -29,7 +29,7 @@ end
|
|||
|
||||
When /^I submit a new action with description "([^"]*)" and the tags "([^"]*)" in the context "([^"]*)"$/ do |description, tags, context_name|
|
||||
fill_in "todo[description]", :with => description
|
||||
fill_in "tag_list", :with => tags
|
||||
fill_in "todo_tag_list", :with => tags
|
||||
|
||||
# fill_in does not seem to work when the field is prefilled with something. Empty the field first
|
||||
clear_context_name_from_next_action_form
|
||||
|
|
@ -43,7 +43,7 @@ When /^I submit a new deferred action with description "([^"]*)" and the tags "(
|
|||
clear_context_name_from_next_action_form
|
||||
fill_in "todo_context_name", :with => context_name
|
||||
|
||||
fill_in "tag_list", :with => tags
|
||||
fill_in "todo_tag_list", :with => tags
|
||||
fill_in "todo[show_from]", :with => format_date(@current_user.time + 1.week)
|
||||
submit_next_action_form
|
||||
end
|
||||
|
|
@ -56,7 +56,7 @@ When /^I submit a new deferred action with description "([^"]*)" to project "([^
|
|||
|
||||
fill_in "todo_project_name", :with => project_name
|
||||
fill_in "todo_context_name", :with => context_name
|
||||
fill_in "tag_list", :with => tags
|
||||
fill_in "todo_tag_list", :with => tags
|
||||
fill_in "todo[show_from]", :with => format_date(@current_user.time + 1.week)
|
||||
|
||||
submit_next_action_form
|
||||
|
|
@ -80,7 +80,7 @@ When /^I submit a new action with description "([^"]*)" to project "([^"]*)" wit
|
|||
|
||||
fill_in "todo_project_name", :with => project_name
|
||||
fill_in "todo_context_name", :with => context_name
|
||||
fill_in "tag_list", :with => tags
|
||||
fill_in "todo_tag_list", :with => tags
|
||||
|
||||
submit_next_action_form
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue