diff options
author | Phil Hughes <me@iamphill.com> | 2019-03-11 13:09:36 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-03-11 13:09:36 +0000 |
commit | c36095b2e363b7a2d2c704a917bedf2337631a66 (patch) | |
tree | 507eef2f111846ef3ac4d489dbfe9f9f5c700be3 /spec/features | |
parent | 97357c5bb6594be793c1af332bed8f942f2d72d2 (diff) | |
download | gitlab-ce-c36095b2e363b7a2d2c704a917bedf2337631a66.tar.gz |
Fix expand all button not working
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51737
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/merge_request/user_views_diffs_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/merge_request/user_views_diffs_spec.rb b/spec/features/merge_request/user_views_diffs_spec.rb index 0434db04113..74342b16cb2 100644 --- a/spec/features/merge_request/user_views_diffs_spec.rb +++ b/spec/features/merge_request/user_views_diffs_spec.rb @@ -34,6 +34,16 @@ describe 'User views diffs', :js do expect(page).not_to have_selector('.mr-loading-status .loading', visible: true) end + it 'expands all diffs' do + first('#a5cc2925ca8258af241be7e5b0381edf30266302 .js-file-title').click + + expect(page).to have_button('Expand all') + + click_button 'Expand all' + + expect(page).not_to have_button('Expand all') + end + context 'when in the inline view' do include_examples 'unfold diffs' end |