From 8ca1257866fbe5fdb3f7453a7e66cf751747cdd2 Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Wed, 20 Dec 2023 17:01:43 -0500 Subject: [PATCH] Fixing nav link selectors to new structure --- spec/views/admin/groups/edit.html.erb_spec.rb | 6 +++--- spec/views/admin/groups/new.html.erb_spec.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/views/admin/groups/edit.html.erb_spec.rb b/spec/views/admin/groups/edit.html.erb_spec.rb index 647ccd603..fe4dd1585 100644 --- a/spec/views/admin/groups/edit.html.erb_spec.rb +++ b/spec/views/admin/groups/edit.html.erb_spec.rb @@ -18,12 +18,12 @@ end it 'has the "description" tab in an active state' do - expect(rendered).to have_selector('.nav-tabs .active a', text: 'Description') + expect(rendered).to have_selector('.nav-tabs .nav-item .nav-link.active', text: 'Description') end it 'has tabs for other actions on the group' do - expect(rendered).to have_selector('.nav-tabs li a', text: 'Users') - expect(rendered).to have_selector('.nav-tabs li a', text: 'Remove') + expect(rendered).to have_selector('.nav-tabs .nav-item a', text: 'Users') + expect(rendered).to have_selector('.nav-tabs .nav-item a', text: 'Remove') end it 'has an input for name' do diff --git a/spec/views/admin/groups/new.html.erb_spec.rb b/spec/views/admin/groups/new.html.erb_spec.rb index 22050d4f8..ddfaed599 100644 --- a/spec/views/admin/groups/new.html.erb_spec.rb +++ b/spec/views/admin/groups/new.html.erb_spec.rb @@ -10,12 +10,12 @@ end it 'has the "description" tab in an active state' do - expect(rendered).to have_selector('.nav-tabs .active a', text: 'Description') + expect(rendered).to have_selector('.nav-tabs .nav-item .nav-link.active', text: 'Description') end it 'has disable tabs for actions that require a group to have been created' do - expect(rendered).to have_selector('.nav-tabs .disabled a', text: 'Users') - expect(rendered).to have_selector('.nav-tabs .disabled a', text: 'Remove') + expect(rendered).to have_selector('.nav-tabs .nav-item a.nav-link.disabled', text: 'Users') + expect(rendered).to have_selector('.nav-tabs .nav-item a.nav-link.disabled', text: 'Remove') end it 'has an input for name' do