summaryrefslogtreecommitdiff
path: root/qa/qa/page/issuable/sidebar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/issuable/sidebar.rb')
-rw-r--r--qa/qa/page/issuable/sidebar.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/qa/qa/page/issuable/sidebar.rb b/qa/qa/page/issuable/sidebar.rb
index dec2ce1eab3..f207264e24f 100644
--- a/qa/qa/page/issuable/sidebar.rb
+++ b/qa/qa/page/issuable/sidebar.rb
@@ -4,6 +4,7 @@ module QA
class Sidebar < Page::Base
view 'app/views/shared/issuable/_sidebar.html.haml' do
element :labels_block, ".issuable-show-labels"
+ element :milestones_block, '.block.milestone'
end
def has_label?(label)
@@ -11,6 +12,12 @@ module QA
!!find('span', text: label)
end
end
+
+ def has_milestone?(milestone)
+ page.within('.block.milestone') do
+ !!find("[href*='/milestones/']", text: milestone)
+ end
+ end
end
end
end