mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 09:46:11 +01:00
fix #1242 by fixing all the routing from the review button
This commit is contained in:
parent
923919e802
commit
af10e74017
4 changed files with 49 additions and 3 deletions
|
|
@ -164,7 +164,6 @@ When /^I edit the project settings$/ do
|
|||
page.should have_xpath("//div[@id='edit_project_#{@project.id}']/form//button[@id='submit_project_#{@project.id}']")
|
||||
end
|
||||
|
||||
|
||||
When /^I close the project settings$/ do
|
||||
@project.should_not be_nil
|
||||
click_link "Cancel"
|
||||
|
|
@ -181,6 +180,19 @@ When /^I edit the project state of "([^"]*)" to "([^"]*)"$/ do |project_name, st
|
|||
end
|
||||
end
|
||||
|
||||
When /^I edit project "([^"]*)" and mark the project as reviewed$/ do |project_name|
|
||||
project = @current_user.projects.find_by_name(project_name)
|
||||
project.should_not be_nil
|
||||
|
||||
open_project_edit_form(project)
|
||||
click_link "reviewed_project_#{project.id}"
|
||||
end
|
||||
|
||||
When /^I edit project settings and mark the project as reviewed$/ do
|
||||
open_project_edit_form(@project)
|
||||
click_link "reviewed_project_#{@project.id}"
|
||||
end
|
||||
|
||||
When /^I add a note "([^"]*)" to the project$/ do |note_body|
|
||||
click_link "Add a note"
|
||||
fill_in "note[body]", :with => note_body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue