Skip to content
Snippets Groups Projects
Commit 946a9827 authored by Eric Eastwood's avatar Eric Eastwood
Browse files

Fix flakey user comment on issue test race condition

parent 69966fcb
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