Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-09-28 17:55:25 +0300
committerDouwe Maan <douwe@selenight.nl>2017-10-02 19:39:25 +0300
commitb74c643c66fd15c95ad148231ebcf4f85283ca16 (patch)
tree889376c02f90b53b2bfe581dbef3896a3b6e4261 /features
parente0e49f2f7120fee6ee34236ed6463e4c130f2ad1 (diff)
Only copy old/new code when selecting left/right side of parallel diff
Diffstat (limited to 'features')
-rw-r--r--features/steps/shared/diff_note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb
index 2c59ec5bb06..c872bd6f861 100644
--- a/features/steps/shared/diff_note.rb
+++ b/features/steps/shared/diff_note.rb
@@ -232,7 +232,7 @@ module SharedDiffNote
end
def click_parallel_diff_line(code, line_type)
- find(".line_holder.parallel .diff-line-num[id='#{code}']").trigger 'mouseover'
+ find(".line_holder.parallel td[id='#{code}']").find(:xpath, 'preceding-sibling::*[1][self::td]').trigger 'mouseover'
find(".line_holder.parallel button[data-line-code='#{code}']").trigger 'click'
end
end