summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 13:48:03 +0100
committerPhil Hughes <me@iamphill.com>2017-09-06 16:07:48 +0100
commit094de17e96eb46e09883bed74bcebd497d110496 (patch)
tree8b79718dc532a7f06df0ff97adaad8446784d409 /features/steps
parent632b24820e4a0bc0e96a2e5900ca6f0aa1e857c5 (diff)
downloadgitlab-ce-094de17e96eb46e09883bed74bcebd497d110496.tar.gz
spec fixes
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/group/milestones.rb2
-rw-r--r--features/steps/project/issues/issues.rb2
-rw-r--r--features/steps/project/issues/milestones.rb2
-rw-r--r--features/steps/project/merge_requests.rb2
-rw-r--r--features/steps/project/snippets.rb2
5 files changed, 5 insertions, 5 deletions
diff --git a/features/steps/group/milestones.rb b/features/steps/group/milestones.rb
index 20edcf75ff1..818bbb50d0e 100644
--- a/features/steps/group/milestones.rb
+++ b/features/steps/group/milestones.rb
@@ -47,7 +47,7 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
end
step 'I click new milestone button' do
- page.within('.breadcrumbs') do
+ page.within('.nav-controls') do
click_link "New milestone"
end
end
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb
index f7dd4fc21e9..fab96f22739 100644
--- a/features/steps/project/issues/issues.rb
+++ b/features/steps/project/issues/issues.rb
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I click link "New issue"' do
- page.within '.breadcrumbs' do
+ page.within '.nav-controls' do
page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
end
end
diff --git a/features/steps/project/issues/milestones.rb b/features/steps/project/issues/milestones.rb
index 307902a887e..16a2d4a6f93 100644
--- a/features/steps/project/issues/milestones.rb
+++ b/features/steps/project/issues/milestones.rb
@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
end
step 'I click link "New Milestone"' do
- page.within('.breadcrumbs') do
+ page.within('.nav-controls') do
click_link "New milestone"
end
end
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index 3c3bffd7223..0d49a4ab90d 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I click link "New Merge Request"' do
- page.within '.breadcrumbs' do
+ page.within '.nav-controls' do
page.has_link?('New Merge Request') ? click_link("New Merge Request") : click_link('New merge request')
end
end
diff --git a/features/steps/project/snippets.rb b/features/steps/project/snippets.rb
index 96b7ba7549f..2a1e6b2bce8 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 '.breadcrumbs' do
+ page.within '.nav-controls' do
first(:link, "New snippet").click
end
end