diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-05-14 18:55:41 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2018-05-14 18:55:41 +1100 |
commit | 5d8cd87c5006f467e7c7985ce38d42b51c0bbb66 (patch) | |
tree | c0d460e2e26ce08df1dfa8fd530420a194c7a187 /features/steps/shared/diff_note.rb | |
parent | 5f4dc699434ad86f611897fd6f9f5ca0de8826b5 (diff) | |
download | gitlab-ce-5d8cd87c5006f467e7c7985ce38d42b51c0bbb66.tar.gz |
Remove /features
Diffstat (limited to 'features/steps/shared/diff_note.rb')
-rw-r--r-- | features/steps/shared/diff_note.rb | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb deleted file mode 100644 index 22f397947b0..00000000000 --- a/features/steps/shared/diff_note.rb +++ /dev/null @@ -1,44 +0,0 @@ -module SharedDiffNote - include Spinach::DSL - include RepoHelpers - include WaitForRequests - - after do - wait_for_requests if javascript_test? - end - - step 'I delete a diff comment' do - find('.note').hover - find(".js-note-delete").click - end - - step 'I haven\'t written any diff comment text' do - page.within(diff_file_selector) do - fill_in "note[note]", with: "" - end - end - - step 'The diff comment preview tab should say there is nothing to do' do - page.within(diff_file_selector) do - find('.js-md-preview-button').click - expect(find('.js-md-preview')).to have_content('Nothing to preview.') - end - end - - step 'I see side-by-side diff button' do - expect(page).to have_content "Side-by-side" - end - - def diff_file_selector - '.diff-file:nth-of-type(1)' - end - - def click_diff_line(code) - find(".line_holder[id='#{code}'] button").click - end - - def click_parallel_diff_line(code, line_type) - find(".line_holder.parallel td[id='#{code}']").find(:xpath, 'preceding-sibling::*[1][self::td]').hover - find(".line_holder.parallel button[data-line-code='#{code}']").click - end -end |