From 2814ea6f7cc2c3cc97fd0f97cb4b598779465552 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 7 Sep 2017 08:34:47 +0100 Subject: fixed new issue button not being clicked in spec --- features/steps/project/issues/issues.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1