Skip to content
Snippets Groups Projects
Commit 533237a0 authored by Thong Kuah's avatar Thong Kuah :speech_balloon:
Browse files

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
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