Commit 01796734 authored by Rémy Coutable's avatar Rémy Coutable Committed by Grzegorz Bizon

[QA] Add a new Page::Issuable::Show page

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b62825fd
......@@ -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'
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment