summaryrefslogtreecommitdiff
path: root/spec/features/groups/milestone_spec.rb
diff options
context:
space:
mode:
authorVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-11 20:03:19 +1100
committerVitaliy @blackst0ne Klachkov <blackst0ne.ru@gmail.com>2017-10-11 20:03:19 +1100
commit64bb19069dba585c6e4622073e5140f052c2661a (patch)
tree385fd2ef99886de4cde4e4bbc2bd94204f81cd61 /spec/features/groups/milestone_spec.rb
parent2a9147b747ded82e0970c3f8235e9d9e27bd0ab4 (diff)
downloadgitlab-ce-64bb19069dba585c6e4622073e5140f052c2661a.tar.gz
Add support for markdown preview to group milestonesmove_markdown_preview_to_concern
Diffstat (limited to 'spec/features/groups/milestone_spec.rb')
-rw-r--r--spec/features/groups/milestone_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/features/groups/milestone_spec.rb b/spec/features/groups/milestone_spec.rb
index 56144d17d4f..12aa54a3da1 100644
--- a/spec/features/groups/milestone_spec.rb
+++ b/spec/features/groups/milestone_spec.rb
@@ -18,6 +18,27 @@ feature 'Group milestones', :js do
visit new_group_milestone_path(group)
end
+ it 'renders description preview' do
+ form = find('.gfm-form')
+
+ form.fill_in(:milestone_description, with: '')
+
+ click_link('Preview')
+
+ preview = find('.js-md-preview')
+
+ expect(preview).to have_content('Nothing to preview.')
+
+ click_link('Write')
+
+ form.fill_in(:milestone_description, with: ':+1: Nice')
+
+ click_link('Preview')
+
+ expect(preview).to have_css('gl-emoji')
+ expect(find('#milestone_description', visible: false)).not_to be_visible
+ end
+
it 'creates milestone with start date' do
fill_in 'Title', with: 'testing'
find('#milestone_start_date').click