diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-04 14:06:44 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-04 14:06:44 +0100 |
commit | 138e26b1fad6730aa048b8cc91f92a597e323162 (patch) | |
tree | 1f71f38a5811ca10846225ded637ffbb11258322 /spec/features/notes_on_merge_requests_spec.rb | |
parent | 796f531f2b4de62eac3db41835e56080520eaa48 (diff) | |
download | gitlab-ce-138e26b1fad6730aa048b8cc91f92a597e323162.tar.gz |
Adds v-pre to code blocks in comments
Closes #22911
Diffstat (limited to 'spec/features/notes_on_merge_requests_spec.rb')
-rw-r--r-- | spec/features/notes_on_merge_requests_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb index f1c522155d3..5d7247e2a62 100644 --- a/spec/features/notes_on_merge_requests_spec.rb +++ b/spec/features/notes_on_merge_requests_spec.rb @@ -240,6 +240,18 @@ describe 'Comments', feature: true do is_expected.to have_css('.notes_holder .note', count: 1) is_expected.to have_button('Reply...') end + + it 'adds code to discussion' do + click_button 'Reply...' + + page.within(first('.js-discussion-note-form')) do + fill_in 'note[note]', with: '```{{ test }}```' + + click_button('Comment') + end + + expect(page).to have_content('{{ test }}') + end end end end |