summaryrefslogtreecommitdiff
path: root/qa/qa/page/component/issuable/sidebar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/component/issuable/sidebar.rb')
-rw-r--r--qa/qa/page/component/issuable/sidebar.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/qa/qa/page/component/issuable/sidebar.rb b/qa/qa/page/component/issuable/sidebar.rb
index 82347ee209a..cc39260ce38 100644
--- a/qa/qa/page/component/issuable/sidebar.rb
+++ b/qa/qa/page/component/issuable/sidebar.rb
@@ -64,8 +64,14 @@ module QA
end
def has_assignee?(username)
- page.within(element_selector_css(:assignee_block)) do
- has_text?(username)
+ within_element(:assignee_block) do
+ has_text?(username, wait: 120)
+ end
+ end
+
+ def has_no_assignee_named?(username)
+ within_element(:assignee_block) do
+ has_no_text?(username, wait: 120)
end
end