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