From 9ec2103e596f64024be05079f3ee36ac37bdabb1 Mon Sep 17 00:00:00 2001 From: Tanya Pazitny Date: Fri, 26 Jul 2019 15:10:06 -0700 Subject: Change qa-* class references to rspec-* for update-now-button --- app/views/shared/_remote_mirror_update_button.html.haml | 2 +- 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 -- cgit v1.2.1