diff options
Diffstat (limited to 'spec/features/merge_request/user_assigns_themselves_spec.rb')
-rw-r--r-- | spec/features/merge_request/user_assigns_themselves_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/features/merge_request/user_assigns_themselves_spec.rb b/spec/features/merge_request/user_assigns_themselves_spec.rb index 35446b125ce..04d401683bf 100644 --- a/spec/features/merge_request/user_assigns_themselves_spec.rb +++ b/spec/features/merge_request/user_assigns_themselves_spec.rb @@ -22,7 +22,12 @@ RSpec.describe 'Merge request > User assigns themselves' do end it 'updates updated_by', :js do - expect { click_button 'assign yourself' }.to change { merge_request.reload.updated_at } + expect do + click_button 'assign yourself' + + expect(find('.assignee')).to have_content(user.name) + wait_for_all_requests + end.to change { merge_request.reload.updated_at } end it 'returns user to the merge request', :js do |