Commit 946a9827 authored by Eric Eastwood's avatar Eric Eastwood

Fix flakey user comment on issue test race condition

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