summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-30 12:36:04 +0100
committerPhil Hughes <me@iamphill.com>2017-08-30 12:36:04 +0100
commitaab5d55090a55caebf9c3c4a52ae92036713e8ae (patch)
treec2681b6dde8a2d5f0a58b20876c75f24cfc31340
parent903e1a305cb5942d9500cb3b3dabacd943e29090 (diff)
downloadgitlab-ce-aab5d55090a55caebf9c3c4a52ae92036713e8ae.tar.gz
more spinach fixes
-rw-r--r--features/steps/project/pages.rb4
-rw-r--r--features/steps/project/snippets.rb2
-rw-r--r--features/steps/shared/project_tab.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/pages.rb b/features/steps/project/pages.rb
index bb69c0d6e99..9705470738e 100644
--- a/features/steps/project/pages.rb
+++ b/features/steps/project/pages.rb
@@ -23,13 +23,13 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
end
step 'I should see the "Pages" tab' do
- page.within '.sub-nav' do
+ page.within '.nav-sidebar' do
expect(page).to have_link('Pages')
end
end
step 'I should not see the "Pages" tab' do
- page.within '.sub-nav' do
+ page.within '.nav-sidebar' do
expect(page).not_to have_link('Pages')
end
end
diff --git a/features/steps/project/snippets.rb b/features/steps/project/snippets.rb
index b0407d3f07d..96b7ba7549f 100644
--- a/features/steps/project/snippets.rb
+++ b/features/steps/project/snippets.rb
@@ -23,7 +23,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I click link "New snippet"' do
- page.within '#content-body' do
+ page.within '.breadcrumbs' do
first(:link, "New snippet").click
end
end
diff --git a/features/steps/shared/project_tab.rb b/features/steps/shared/project_tab.rb
index 97c6ad14885..5a516ee33bc 100644
--- a/features/steps/shared/project_tab.rb
+++ b/features/steps/shared/project_tab.rb
@@ -5,7 +5,7 @@ module SharedProjectTab
include SharedActiveTab
step 'the active main tab should be Project' do
- ensure_active_main_tab('Project')
+ ensure_active_main_tab('Overview')
end
step 'the active main tab should be Repository' do