diff options
author | Peter Leitzen <pl@neopoly.de> | 2018-08-10 17:51:34 +0200 |
---|---|---|
committer | Peter Leitzen <pl@neopoly.de> | 2018-08-10 17:51:34 +0200 |
commit | ea9c7bee4b167e85e192cc40720d2c4cc07540ab (patch) | |
tree | 0707a83b1408eaa69acfc03bb1248319d0a4051b /spec/support/helpers/features/notes_helpers.rb | |
parent | 82337dd684d88ec38285d51cfb1180b1a1057b95 (diff) | |
download | gitlab-ce-ea9c7bee4b167e85e192cc40720d2c4cc07540ab.tar.gz |
Fix preview of commit tagging
Diffstat (limited to 'spec/support/helpers/features/notes_helpers.rb')
-rw-r--r-- | spec/support/helpers/features/notes_helpers.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/helpers/features/notes_helpers.rb b/spec/support/helpers/features/notes_helpers.rb index 2b9f8b30c60..89517fde6e2 100644 --- a/spec/support/helpers/features/notes_helpers.rb +++ b/spec/support/helpers/features/notes_helpers.rb @@ -20,6 +20,13 @@ module Spec end end end + + def preview_note(text) + page.within('.js-main-target-form') do + fill_in('note[note]', with: text) + click_on('Preview') + end + end end end end |