summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/commit/show.rb
blob: 9770b8a657cab3f0f2678d33073d10567d5a569f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Commit
        class Show < Page::Base
          view 'app/views/projects/commit/_commit_box.html.haml' do
            element :options_button
            element :email_patches
            element :plain_diff
          end

          def select_email_patches
            click_element :options_button
            click_element :email_patches
          end

          def select_plain_diff
            click_element :options_button
            click_element :plain_diff
          end
        end
      end
    end
  end
end