diff options
author | Phil Hughes <me@iamphill.com> | 2017-11-21 11:49:35 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-21 11:49:35 +0300 |
commit | 5ce2f847b182d4e96efdd85bea7f1aae22c44865 (patch) | |
tree | 8b62000d6f06854aa6e75b7b037486a1e9061afe /spec/features/commits_spec.rb | |
parent | acae8ddb34e5f7119edba8a40556ceff99dd64aa (diff) | |
parent | 2d980cb71c952483da3cffe2ea368a6904c9a0a5 (diff) |
Merge branch '39821-fix-commits-list-with-multi-file-editor' into 'master'
Fix commits list 500 with multi-file editor new_repo cookie
Closes #39821
See merge request gitlab-org/gitlab-ce!15502
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r-- | spec/features/commits_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index b163ca8dc75..98586ddbd81 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -200,5 +200,12 @@ describe 'Commits' do expect(page).to have_content("committed #{commit.committed_date.strftime("%b %d, %Y")}") end end + + it 'shows the ref switcher with the multi-file editor enabled', :js do + set_cookie('new_repo', 'true') + visit project_commits_path(project, branch_name) + + expect(find('.js-project-refs-dropdown')).to have_content branch_name + end end end |