diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-03-22 01:24:48 +0300 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-05-07 05:42:09 +0300 |
commit | 875338487343b092f670ab5e0323904ec5457a3a (patch) | |
tree | f625635a4198e9d6a884fa6bfe73630ab49af978 /spec/features | |
parent | 4ebbfb9f1e95091a7753a10e12d989d72f4332f8 (diff) |
Show disabled project repo mirrors
Show disabled mirrors with a badge so that they
can be deleted by project owners.
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/settings/repository_settings_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/settings/repository_settings_spec.rb b/spec/features/projects/settings/repository_settings_spec.rb index f7de769cee9..8c7bc192c50 100644 --- a/spec/features/projects/settings/repository_settings_spec.rb +++ b/spec/features/projects/settings/repository_settings_spec.rb @@ -236,5 +236,17 @@ describe 'Projects > Settings > Repository settings' do expect(mirrored_project.remote_mirrors.count).to eq(0) end end + + it 'shows a disabled mirror' do + create(:remote_mirror, project: project, enabled: false) + + visit project_settings_repository_path(project) + + mirror = find('.qa-mirrored-repository-row') + + expect(mirror).to have_selector('.qa-delete-mirror') + expect(mirror).to have_selector('.qa-disabled-mirror-badge') + expect(mirror).not_to have_selector('.qa-update-now-button') + end end end |