mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 09:18:50 +01:00
fix editing a note from the notes page
This commit is contained in:
parent
77e2ff0751
commit
94b5aa2346
10 changed files with 133 additions and 61 deletions
|
|
@ -36,8 +36,12 @@ When /^I click the icon next to the note$/ do
|
|||
click_link "Show note"
|
||||
end
|
||||
|
||||
When /^I edit the note to "([^"]*)"$/ do |note_content|
|
||||
pending # express the regexp above with the code you wish you had
|
||||
When /^I edit the first note to "([^"]*)"$/ do |note_body|
|
||||
title = selenium.get_text("css=div.container h2")
|
||||
id = title.split(' ').last
|
||||
click_link "link_edit_note_#{id}"
|
||||
fill_in "note[body]", :with => note_body
|
||||
click_button "submit_note_#{id}"
|
||||
end
|
||||
|
||||
Then /^(.*) notes should be visible$/ do |number|
|
||||
|
|
@ -68,4 +72,4 @@ end
|
|||
|
||||
Then /^I should see the note text$/ do
|
||||
Then "I should see \"after 50 characters\""
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue