From 01796734d078f61c54e1af753564c01db91993f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Wed, 20 Jun 2018 15:20:58 +0200 Subject: [QA] Add a new Page::Issuable::Show page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- qa/qa.rb | 4 ++++ qa/qa/page/issuable/show.rb | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 qa/qa/page/issuable/show.rb 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 -- cgit v1.2.1