Skip to content

Commit

Permalink
Merge pull request #2096 from samvera/hyrax-5-upgrade-fixing-nav-link…
Browse files Browse the repository at this point in the history
…-selectors

Fixing nav link selectors to new structure
  • Loading branch information
jeremyf authored Dec 20, 2023
2 parents 8748cda + 8ca1257 commit 3c1f35b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/views/admin/groups/edit.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/views/admin/groups/new.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c1f35b

Please sign in to comment.