Commit 0a3d50eb32faef18a3bb8bc7626303cdcc50ac3b
1 parent
eb272227
Exists in
spb-stable
and in
3 other branches
Fixed tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
app/views/projects/_settings_nav.html.haml
1 | -%ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20 | 1 | +%ul.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20.project-settings-nav |
2 | = nav_link(path: 'projects#edit') do | 2 | = nav_link(path: 'projects#edit') do |
3 | = link_to edit_project_path(@project), class: "stat-tab tab " do | 3 | = link_to edit_project_path(@project), class: "stat-tab tab " do |
4 | %i.icon-edit | 4 | %i.icon-edit |
features/steps/project/project_active_tab.rb
@@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps | @@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps | ||
57 | end | 57 | end |
58 | 58 | ||
59 | Given 'I click the "Edit" tab' do | 59 | Given 'I click the "Edit" tab' do |
60 | - click_link('Edit') | 60 | + within '.project-settings-nav' do |
61 | + click_link('Project') | ||
62 | + end | ||
61 | end | 63 | end |
62 | 64 | ||
63 | Given 'I click the "Hooks" tab' do | 65 | Given 'I click the "Hooks" tab' do |
@@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps | @@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps | ||
73 | end | 75 | end |
74 | 76 | ||
75 | Then 'the active sub nav should be Edit' do | 77 | Then 'the active sub nav should be Edit' do |
76 | - ensure_active_sub_nav('Edit Project') | 78 | + ensure_active_sub_nav('Project') |
77 | end | 79 | end |
78 | 80 | ||
79 | Then 'the active sub nav should be Hooks' do | 81 | Then 'the active sub nav should be Hooks' do |