From 7184607a134ba563a52b0bae0628e7e8c67b1d2c Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Thu, 21 Dec 2023 10:09:27 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Fix=20button=20class=20for=20Boo?= =?UTF-8?q?tstrap=203=20to=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin_set_form_participants_tab_spec.rb | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/spec/features/admin_set_form_participants_tab_spec.rb b/spec/features/admin_set_form_participants_tab_spec.rb index b65f3f5cb..8baf6fdb0 100644 --- a/spec/features/admin_set_form_participants_tab_spec.rb +++ b/spec/features/admin_set_form_participants_tab_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -RSpec.describe 'AdminSet form Participants tab', type: :feature, js: true, clean: true, ci: 'skip' do +RSpec.describe 'AdminSet form Participants tab', type: :feature, js: true, clean: true do include Warden::Test::Helpers context 'as an admin user' do @@ -63,7 +63,7 @@ text: group.humanized_name ).click find('select#permission_template_access_grants_attributes_0_access option', text: 'Manager').click - find('input.btn-info').click + find('input.btn-secondary').click end expect(find('table.managers-table')).to have_content(group.name.titleize) @@ -86,7 +86,7 @@ text: group.humanized_name ).click find('select#permission_template_access_grants_attributes_0_access option', text: 'Depositor').click - find('input.btn-info').click + find('input.btn-secondary').click end expect(find('table.managers-table')).not_to have_content(group.name.titleize) @@ -109,7 +109,7 @@ text: group.humanized_name ).click find('select#permission_template_access_grants_attributes_0_access option', text: 'Viewer').click - find('input.btn-info').click + find('input.btn-secondary').click end expect(find('table.managers-table')).not_to have_content(group.name.titleize) @@ -136,10 +136,9 @@ .find(:xpath, '//td[@data-agent="admin"]') .find(:xpath, '..')['innerHTML'] expect(manager_row_html).to include('Repository Administrators') - expect(manager_row_html).to include( - '' - ) + # rubocop:disable Metrics/LineLength + expect(manager_row_html).to include('') + # rubocop:enable Metrics/LineLength end it 'shows an enabled remove button next to Repository Administrator group as a Depositor' do @@ -149,14 +148,14 @@ text: "Repository Administrators" ).click find('select#permission_template_access_grants_attributes_0_access option', text: 'Depositor').click - find('input.btn-info').click + find('input.btn-secondary').click end depositor_row_html = find('table.depositors-table') .find(:xpath, './/td[@data-agent="admin"]') .find(:xpath, '..')['innerHTML'] expect(depositor_row_html).to include('Repository Administrators') - expect(depositor_row_html).to include('') + expect(depositor_row_html).to include('') end it 'shows an enabled remove button next to Repository Administrator group as a Viewer' do @@ -166,14 +165,14 @@ text: "Repository Administrators" ).click find('select#permission_template_access_grants_attributes_0_access option', text: 'Viewer').click - find('input.btn-info').click + find('input.btn-secondary').click end viewer_row_html = find('table.viewers-table') .find(:xpath, './/td[@data-agent="admin"]') .find(:xpath, '..')['innerHTML'] expect(viewer_row_html).to include('Repository Administrators') - expect(viewer_row_html).to include('') + expect(viewer_row_html).to include('') end end end