diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-26 14:52:18 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-29 22:03:00 +0300 |
commit | e558edd1ce47c3c056dd95c0eba8fd811ee749c7 (patch) | |
tree | 1033c82beeff30db5e1506ef1f040298a1f3038f /spec/features/issues/note_polling_spec.rb | |
parent | 21d0cddd456c03e776a8b30e4695ede94c400792 (diff) |
Update specs to carry out changes in note factory
Diffstat (limited to 'spec/features/issues/note_polling_spec.rb')
-rw-r--r-- | spec/features/issues/note_polling_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/issues/note_polling_spec.rb b/spec/features/issues/note_polling_spec.rb index e4efdbe2421..9f521263e4c 100644 --- a/spec/features/issues/note_polling_spec.rb +++ b/spec/features/issues/note_polling_spec.rb @@ -9,8 +9,12 @@ 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, note: 'Looks good!') + note = create(:note_on_issue, noteable: issue, + project: project, + note: 'Looks good!') + page.execute_script('notes.refresh();') + expect(page).to have_selector("#note_#{note.id}", text: 'Looks good!') end end |