diff options
Diffstat (limited to 'features/steps/shared/note.rb')
-rw-r--r-- | features/steps/shared/note.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb index da08da9420d..36b81b74186 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -102,4 +102,21 @@ module SharedNote page.should have_content("XML attached") end end + + # Markdown + + step 'I leave a comment with a header containing "Comment with a header"' do + within(".js-main-target-form") do + fill_in "note[note]", with: "# Comment with a header" + click_button "Add Comment" + sleep 0.05 + end + end + + step 'The comment with the header should not have an ID' do + within(".note-text") do + page.should have_content("Comment with a header") + page.should_not have_css("#comment-with-a-header") + end + end end |