Commit 434efdac authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-flakey-user-comment-on-issue' into 'master'

Fix flakey time-sensitive user comment on issue test

See merge request gitlab-org/gitlab-ce!19786
parents 282b3b52 946a9827
...@@ -31,11 +31,14 @@ describe "User comments on issue", :js do ...@@ -31,11 +31,14 @@ describe "User comments on issue", :js do
end end
it "adds comment with code block" do it "adds comment with code block" do
comment = "```\nCommand [1]: /usr/local/bin/git , see [text](doc/text)\n```" code_block_content = "Command [1]: /usr/local/bin/git , see [text](doc/text)"
comment = "```\n#{code_block_content}\n```"
add_note(comment) add_note(comment)
expect(page).to have_content(comment) wait_for_requests
expect(page.find('pre code').text).to eq code_block_content
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment