diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-14 09:41:59 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-15 14:19:35 +0100 |
commit | 8fe821cfa5acea2a4ab1fce7f35a76455d5a1cac (patch) | |
tree | 3879f17a3a175e13d7ebaf33dc2b06a1e6ad4f6b | |
parent | 6fb120d1b0ad8adee7c5c431c7f8a399a2da5cea (diff) | |
download | gitlab-ce-8fe821cfa5acea2a4ab1fce7f35a76455d5a1cac.tar.gz |
Trigger notes refresh in specs instead of waiting for ajaxtests/note-polling
-rw-r--r-- | spec/features/issues/note_polling_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/issues/note_polling_spec.rb b/spec/features/issues/note_polling_spec.rb index 5cf3dcf8904..e4efdbe2421 100644 --- a/spec/features/issues/note_polling_spec.rb +++ b/spec/features/issues/note_polling_spec.rb @@ -10,7 +10,7 @@ feature 'Issue notes polling' do scenario 'Another user adds a comment to an issue', js: true do note = create(:note_on_issue, noteable: issue, note: 'Looks good!') - sleep 15 # refresh interval in notes.js.coffee is 15 seconds + page.execute_script('notes.refresh();') expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!') end end |