Skip to content
Snippets Groups Projects
Commit 434efdac authored by Sean McGivern's avatar Sean McGivern
Browse files

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
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -31,11 +31,14 @@ describe "User comments on issue", :js do
end
 
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)
 
expect(page).to have_content(comment)
wait_for_requests
expect(page.find('pre code').text).to eq code_block_content
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment