Skip to content
Snippets Groups Projects
Commit 4c313725 authored by Patrick Derichs's avatar Patrick Derichs
Browse files

Add edit_note helper method

parent 67ffe3ce
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -23,6 +23,14 @@ module Spec
end
end
 
def edit_note(note_text_to_edit, new_note_text)
page.within('#notes-list li.note', text: note_text_to_edit) do
find('.js-note-edit').click
fill_in('note[note]', with: new_note_text)
find('.js-comment-button').click
end
end
def preview_note(text)
page.within('.js-main-target-form') do
filled_text = fill_in('note[note]', with: text)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment