diff options
author | Tanya Pazitny <tpazitny@gitlab.com> | 2019-07-26 15:10:06 -0700 |
---|---|---|
committer | Tanya Pazitny <tpazitny@gitlab.com> | 2019-07-26 15:10:06 -0700 |
commit | 9ec2103e596f64024be05079f3ee36ac37bdabb1 (patch) | |
tree | 39544064d4beba73e211eab5c8e28a6cfd2a84e6 | |
parent | 7eb91ce2d5e3682099e8583794bb19882d1b5216 (diff) | |
download | gitlab-ce-tp-qtt182-8.tar.gz |
Change qa-* class references to rspec-* for update-now-buttontp-qtt182-8
-rw-r--r-- | app/views/shared/_remote_mirror_update_button.html.haml | 2 | ||||
-rw-r--r-- | spec/features/projects/settings/repository_settings_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_remote_mirror_update_button.html.haml b/app/views/shared/_remote_mirror_update_button.html.haml index 8da2ae5111a..4b39c8b06e9 100644 --- a/app/views/shared/_remote_mirror_update_button.html.haml +++ b/app/views/shared/_remote_mirror_update_button.html.haml @@ -2,5 +2,5 @@ %button.btn.disabled{ type: 'button', data: { toggle: 'tooltip', container: 'body' }, title: _('Updating') } = icon("refresh spin") - elsif remote_mirror.enabled? - = link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn qa-update-now-button", data: { toggle: 'tooltip', container: 'body' }, title: _('Update now') do + = link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn qa-update-now-button rspec-update-now-button", data: { toggle: 'tooltip', container: 'body' }, title: _('Update now') do = icon("refresh") diff --git a/spec/features/projects/settings/repository_settings_spec.rb b/spec/features/projects/settings/repository_settings_spec.rb index f66d3a0ac7d..22b49e78f28 100644 --- a/spec/features/projects/settings/repository_settings_spec.rb +++ b/spec/features/projects/settings/repository_settings_spec.rb @@ -252,7 +252,7 @@ describe 'Projects > Settings > Repository settings' do expect(mirror).to have_selector('.rspec-delete-mirror') expect(mirror).to have_selector('.rspec-disabled-mirror-badge') - expect(mirror).not_to have_selector('.qa-update-now-button') + expect(mirror).not_to have_selector('.rspec-update-now-button') end end end |