summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/commit/show.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/commit/show.rb')
-rw-r--r--qa/qa/page/project/commit/show.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/qa/qa/page/project/commit/show.rb b/qa/qa/page/project/commit/show.rb
index 9770b8a657c..ba09dd1b92a 100644
--- a/qa/qa/page/project/commit/show.rb
+++ b/qa/qa/page/project/commit/show.rb
@@ -9,6 +9,7 @@ module QA
element :options_button
element :email_patches
element :plain_diff
+ element :commit_sha_content
end
def select_email_patches
@@ -20,6 +21,10 @@ module QA
click_element :options_button
click_element :plain_diff
end
+
+ def commit_sha
+ find_element(:commit_sha_content).text
+ end
end
end
end