From 7c977e10d2b180906136e93cd939e4af0314452d Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Thu, 27 Oct 2016 08:13:00 -0500 Subject: [PATCH] Fix failing builds_spec --- spec/features/projects/builds_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/projects/builds_spec.rb b/spec/features/projects/builds_spec.rb index d1685f95503..63a23a14f20 100644 --- a/spec/features/projects/builds_spec.rb +++ b/spec/features/projects/builds_spec.rb @@ -216,7 +216,9 @@ describe "Builds" do @build.run! visit namespace_project_build_path(@project.namespace, @project, @build) click_link 'Cancel' - click_link 'Retry' + page.within('.build-header') do + click_link 'Retry build' + end end it 'shows the right status and buttons' do