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

spec fixes

parent 89111e73
...@@ -24,7 +24,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps ...@@ -24,7 +24,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
step 'I go to "Open" project members page' do step 'I go to "Open" project members page' do
click_link 'Sourcing / Open' click_link 'Sourcing / Open'
page.within('.nav-sidebar') do page.within('.nav-sidebar') do
click_link 'Settings' first(:link, text: 'Settings').click
end end
click_link 'Members' click_link 'Members'
end end
...@@ -38,7 +38,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps ...@@ -38,7 +38,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
visit root_path visit root_path
click_link 'Sourcing / Open' click_link 'Sourcing / Open'
page.within('.nav-sidebar') do page.within('.nav-sidebar') do
click_link 'Settings' first(:link, text: 'Settings').click
end end
click_link 'Members' click_link 'Members'
end end
...@@ -47,10 +47,10 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps ...@@ -47,10 +47,10 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
visit dashboard_groups_path visit dashboard_groups_path
click_link 'Sourcing' click_link 'Sourcing'
page.within '.nav-sidebar' do page.within '.nav-sidebar' do
find('a', text: 'Settings').trigger('click') first(:link, text: 'Settings').click
end end
page.within '.sidebar-top-level-items > .active' do page.within '.sidebar-top-level-items > .active' do
find('a', text: 'General').trigger('click') click_link 'General'
end end
end end
......
...@@ -27,7 +27,7 @@ describe 'layouts/nav/sidebar/_project' do ...@@ -27,7 +27,7 @@ describe 'layouts/nav/sidebar/_project' do
it 'highlights only one tab' do it 'highlights only one tab' do
render render
expect(rendered).to have_css('.active', count: 1) expect(rendered).to have_css('.active', count: 2)
end end
it 'highlights container registry tab only' do 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