summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-05-24 14:16:22 +0100
committerPhil Hughes <me@iamphill.com>2016-06-09 17:19:14 +0100
commit051dc1d263b6be305c30e928238f4f7389200433 (patch)
treec11972548835a0cd71e1e54c11870cb11c2382a2 /features
parente7ca709a9249236a3894833af67471ade4eb1d07 (diff)
downloadgitlab-ce-051dc1d263b6be305c30e928238f4f7389200433.tar.gz
Fixed failing tests
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/issues/labels.rb2
-rw-r--r--features/steps/project/labels.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/project/issues/labels.rb b/features/steps/project/issues/labels.rb
index e02b57bbf84..2937d5d7ca8 100644
--- a/features/steps/project/issues/labels.rb
+++ b/features/steps/project/issues/labels.rb
@@ -9,7 +9,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
step 'I remove label \'bug\'' do
page.within "#label_#{bug_label.id}" do
- click_link 'Delete'
+ first(:link, 'Delete').click
end
end
diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb
index 5bb02189021..eff05783bcf 100644
--- a/features/steps/project/labels.rb
+++ b/features/steps/project/labels.rb
@@ -29,6 +29,6 @@ class Spinach::Features::Labels < Spinach::FeatureSteps
private
def subscribe_button
- first('.label-subscribe-button span')
+ first('.label-subscribe-button span', visible: true)
end
end