Commit 3db45574 authored by Phil Hughes's avatar Phil Hughes

spec fixes

parent 89111e73
......@@ -24,7 +24,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step 'I go to "Open" project members page' do
click_link 'Sourcing / Open'
page.within('.nav-sidebar') do
click_link 'Settings'
first(:link, text: 'Settings').click
end
click_link 'Members'
end
......@@ -38,7 +38,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
visit root_path
click_link 'Sourcing / Open'
page.within('.nav-sidebar') do
click_link 'Settings'
first(:link, text: 'Settings').click
end
click_link 'Members'
end
......@@ -47,10 +47,10 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
visit dashboard_groups_path
click_link 'Sourcing'
page.within '.nav-sidebar' do
find('a', text: 'Settings').trigger('click')
first(:link, text: 'Settings').click
end
page.within '.sidebar-top-level-items > .active' do
find('a', text: 'General').trigger('click')
click_link 'General'
end
end
......
......@@ -27,7 +27,7 @@ describe 'layouts/nav/sidebar/_project' do
it 'highlights only one tab' do
render
expect(rendered).to have_css('.active', count: 1)
expect(rendered).to have_css('.active', count: 2)
end
it 'highlights container registry tab only' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment