diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2018-06-13 14:18:08 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2018-06-14 03:24:50 -0500 |
commit | 248b744c112c9895b17c33807fe16e0fe913a70e (patch) | |
tree | 0e2ecf416099e570ec3ca5412ba23d6955de94db | |
parent | 5652b3aad99e73d5ea33f5f310d6bee85654634c (diff) | |
download | gitlab-ce-fix-flakey-user-comment-on-issue.tar.gz |
Fix flakey user comment on issue test race conditionfix-flakey-user-comment-on-issue
-rw-r--r-- | spec/features/projects/issues/user_comments_on_issue_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/features/projects/issues/user_comments_on_issue_spec.rb b/spec/features/projects/issues/user_comments_on_issue_spec.rb index c45fdc7642f..d222fe20b10 100644 --- a/spec/features/projects/issues/user_comments_on_issue_spec.rb +++ b/spec/features/projects/issues/user_comments_on_issue_spec.rb @@ -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).to have_content(code_block_content) end end |