summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-06-20 15:20:58 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-07-06 14:22:00 +0200
commit01796734d078f61c54e1af753564c01db91993f4 (patch)
treefbb928d5d9acd036d9da4a98be1e0d17dabae17e
parentb62825fd8e9c2215a270675a1209442fd1d38b30 (diff)
downloadgitlab-ce-01796734d078f61c54e1af753564c01db91993f4.tar.gz
[QA] Add a new Page::Issuable::Show page
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--qa/qa.rb4
-rw-r--r--qa/qa/page/issuable/show.rb18
2 files changed, 22 insertions, 0 deletions
diff --git a/qa/qa.rb b/qa/qa.rb
index 5013024e60f..41fca37c8f2 100644
--- a/qa/qa.rb
+++ b/qa/qa.rb
@@ -184,6 +184,10 @@ module QA
autoload :PersonalAccessTokens, 'qa/page/profile/personal_access_tokens'
end
+ module Issuable
+ autoload :Show, 'qa/page/issuable/show'
+ end
+
module MergeRequest
autoload :New, 'qa/page/merge_request/new'
autoload :Show, 'qa/page/merge_request/show'
diff --git a/qa/qa/page/issuable/show.rb b/qa/qa/page/issuable/show.rb
new file mode 100644
index 00000000000..c02edbd286b
--- /dev/null
+++ b/qa/qa/page/issuable/show.rb
@@ -0,0 +1,18 @@
+module QA
+ module Page
+ module Issuable
+ class Show < Page::Base
+ view 'app/views/shared/issuable/_sidebar.html.haml' do
+ element :labels_block, ".issuable-show-labels"
+ end
+
+ def has_label?(label)
+ page.within('.issuable-show-labels') do
+ element = find('span', text: label, wait: 1)
+ !element.nil?
+ end
+ end
+ end
+ end
+ end
+end