Commit 533237a0 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'add-edit-note-helper-method-pd' into 'master'

Add edit_note helper method

See merge request gitlab-org/gitlab-ce!31235
parents c2e66c1c 4c313725
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment