Fix flakey user comment on issue test race condition

This commit is contained in:
Eric Eastwood 2018-06-13 14:18:08 -05:00
parent 69966fcb8d
commit 946a982748
1 changed files with 5 additions and 2 deletions

View File

@ -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