Commit 0a3d50eb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed tests

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent eb272227
%ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20 %ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20.project-settings-nav
= nav_link(path: 'projects#edit') do = nav_link(path: 'projects#edit') do
= link_to edit_project_path(@project), class: "stat-tab tab " do = link_to edit_project_path(@project), class: "stat-tab tab " do
%i.icon-edit %i.icon-edit
......
...@@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps ...@@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps
end end
Given 'I click the "Edit" tab' do Given 'I click the "Edit" tab' do
click_link('Edit') within '.project-settings-nav' do
click_link('Project')
end
end end
Given 'I click the "Hooks" tab' do Given 'I click the "Hooks" tab' do
...@@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps ...@@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
end end
Then 'the active sub nav should be Edit' do Then 'the active sub nav should be Edit' do
ensure_active_sub_nav('Edit Project') ensure_active_sub_nav('Project')
end end
Then 'the active sub nav should be Hooks' do Then 'the active sub nav should be Hooks' 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