diff options
Diffstat (limited to 'qa/qa/page/project/monitor/incidents/index.rb')
-rw-r--r-- | qa/qa/page/project/monitor/incidents/index.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/qa/qa/page/project/monitor/incidents/index.rb b/qa/qa/page/project/monitor/incidents/index.rb index 1b30e484723..04cb23da389 100644 --- a/qa/qa/page/project/monitor/incidents/index.rb +++ b/qa/qa/page/project/monitor/incidents/index.rb @@ -15,8 +15,16 @@ module QA click_element :create_incident_button end - def has_incident?(wait: Support::Repeater::DEFAULT_MAX_WAIT_TIME) - wait_until(max_duration: wait) { has_element?(:incident_link) } + def has_incident?(wait: Support::Repeater::DEFAULT_MAX_WAIT_TIME, title: nil) + wait_until(max_duration: wait) { has_element?(:incident_link, text: title) } + end + + def has_no_incident?(title: nil) + has_no_element?(:incident_link, text: title) + end + + def go_to_tab(tab) + click_link_with_text(tab) end end end |