From d1d74814e35cbff4234fceb1f9333ba76cc91f30 Mon Sep 17 00:00:00 2001 From: Douwe Maan <douwe@selenight.nl> Date: Thu, 7 Jul 2016 19:49:19 -0400 Subject: [PATCH] Fix creating diff notes in features --- spec/features/notes_on_merge_requests_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb index 61eec0afbee..dd016a36d1e 100644 --- a/spec/features/notes_on_merge_requests_spec.rb +++ b/spec/features/notes_on_merge_requests_spec.rb @@ -231,7 +231,7 @@ describe 'Comments', feature: true do end def click_diff_line(data = line_code) - find(".line_holder[id='#{data}'] td:nth-of-type(1)").hover + find(".line_holder[id='#{data}'] td.line_content").hover find(".line_holder[id='#{data}'] button").trigger('click') end end -- 2.30.9