Commit 3e789eab authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Grzegorz Bizon

Add minor fixes in note polling specs

parent 9470d05c
...@@ -9,10 +9,8 @@ feature 'Issue notes polling' do ...@@ -9,10 +9,8 @@ feature 'Issue notes polling' do
end end
scenario 'Another user adds a comment to an issue', js: true do scenario 'Another user adds a comment to an issue', js: true do
note = create(:note_on_issue, noteable: issue, note = create(:note_on_issue, noteable: issue, note: 'Looks good!')
project_id: project.project_id, sleep 15 # refresh interval in notes.js.coffee is 15 seconds
note: 'Looks good!')
sleep 16 # refresh interval in notes.js.coffee, 15 seconds
expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!') expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!')
end end
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