Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-13 02:44:45 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2015-12-15 16:19:35 +0300
commit3e789eab8be93c45685c417488da102d996209ba (patch)
treecb8adfb275f4b94d567b894191cc4ac09e9a4754 /spec
parent9470d05c70c15df75ae6be45812967abf89ae59a (diff)
Add minor fixes in note polling specs
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/note_polling_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/issues/note_polling_spec.rb b/spec/features/issues/note_polling_spec.rb
index 1698a0a3e5d..5cf3dcf8904 100644
--- a/spec/features/issues/note_polling_spec.rb
+++ b/spec/features/issues/note_polling_spec.rb
@@ -9,10 +9,8 @@ feature 'Issue notes polling' do
end
scenario 'Another user adds a comment to an issue', js: true do
- note = create(:note_on_issue, noteable: issue,
- project_id: project.project_id,
- note: 'Looks good!')
- sleep 16 # refresh interval in notes.js.coffee, 15 seconds
+ note = create(:note_on_issue, noteable: issue, note: 'Looks good!')
+ sleep 15 # refresh interval in notes.js.coffee is 15 seconds
expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!')
end
end