diff options
Diffstat (limited to 'qa/qa/page/project/commit/show.rb')
-rw-r--r-- | qa/qa/page/project/commit/show.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/qa/qa/page/project/commit/show.rb b/qa/qa/page/project/commit/show.rb index 8ece81f7088..f732eb6565e 100644 --- a/qa/qa/page/project/commit/show.rb +++ b/qa/qa/page/project/commit/show.rb @@ -6,10 +6,20 @@ module QA module Commit class Show < Page::Base view 'app/views/projects/commit/_commit_box.html.haml' do + element :commit_sha_content + end + + view 'app/assets/javascripts/projects/commit/components/commit_options_dropdown.vue' do element :options_button + element :cherry_pick_button element :email_patches element :plain_diff - element :commit_sha_content + end + + def cherry_pick_commit + click_element(:options_button) + click_element(:cherry_pick_button, Page::Component::CommitModal) + click_element(:submit_commit_button) end def select_email_patches |