summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-07 08:34:47 +0100
committerPhil Hughes <me@iamphill.com>2017-09-07 08:34:47 +0100
commit2814ea6f7cc2c3cc97fd0f97cb4b598779465552 (patch)
tree0ac79e016a49bc106fcf492112e8754eac8a927e
parent66e8a39b3c8497171f7855f9dacc2702149ed15c (diff)
downloadgitlab-ce-breadcrumbs-extra-btns-remove.tar.gz
fixed new issue button not being clicked in specbreadcrumbs-extra-btns-remove
-rw-r--r--features/steps/project/issues/issues.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb
index ceffc7a757d..b9460f5b534 100644
--- a/features/steps/project/issues/issues.rb
+++ b/features/steps/project/issues/issues.rb
@@ -62,7 +62,9 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I click link "New issue"' do
- page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
+ page.within '#content-body' do
+ page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
+ end
end
step 'I click "author" dropdown' do