diff options
author | Jose <jvargas@gitlab.com> | 2018-06-14 12:10:34 -0500 |
---|---|---|
committer | Jose <jvargas@gitlab.com> | 2018-06-14 12:13:01 -0500 |
commit | 9230925c61cf7efa84ea4764b6027ca37f88d2f3 (patch) | |
tree | 35bde0acf35b31b7514ae5ee681aaebda5c1e6b0 | |
parent | 4d0bbfeb6fa8e3487b8feb1274681c1161af0268 (diff) | |
download | gitlab-ce-jivl-fix-diff-comment-button-position.tar.gz |
Fix diff_ntoes_specjivl-fix-diff-comment-button-position
-rw-r--r-- | spec/features/projects/commit/diff_notes_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/commit/diff_notes_spec.rb b/spec/features/projects/commit/diff_notes_spec.rb index 4dbfc6f6edf..4f6200209d7 100644 --- a/spec/features/projects/commit/diff_notes_spec.rb +++ b/spec/features/projects/commit/diff_notes_spec.rb @@ -18,10 +18,10 @@ feature 'Commit diff', :js do end it "adds comment to diff" do - diff_line_num = first('.diff-line-num.new') - - diff_line_num.hover - diff_line_num.find('.js-add-diff-note-button').click + page.execute_script <<-JS + var diffLineButton = document.querySelectorAll('.js-add-diff-note-button')[0]; + diffLineButton.click(); + JS page.within(first('.diff-viewer')) do find('.js-note-text').set 'test comment' |