Commit 9063dea6 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'sh-fix-flaky-user-assign-spec' into 'master'

Potential fix for flaky user_assigns_themselves_spec.rb

See merge request gitlab-org/gitlab!41625
parents 6be04431 903d6dc0
...@@ -22,7 +22,12 @@ RSpec.describe 'Merge request > User assigns themselves' do ...@@ -22,7 +22,12 @@ RSpec.describe 'Merge request > User assigns themselves' do
end end
it 'updates updated_by', :js do 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 end
it 'returns user to the merge request', :js do it 'returns user to the merge request', :js do
......
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