diff options
Diffstat (limited to 'qa/qa/page/project/settings/alerts.rb')
-rw-r--r-- | qa/qa/page/project/settings/alerts.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/qa/qa/page/project/settings/alerts.rb b/qa/qa/page/project/settings/alerts.rb new file mode 100644 index 00000000000..be9b61ded80 --- /dev/null +++ b/qa/qa/page/project/settings/alerts.rb @@ -0,0 +1,39 @@ +# frozen_string_literal: true + +module QA + module Page + module Project + module Settings + class Alerts < Page::Base + view 'app/assets/javascripts/alerts_settings/components/alerts_form.vue' do + element :create_issue_checkbox + element :incident_templates_dropdown + element :save_changes_button + element :incident_templates_item + end + + def enable_issues_for_incidents + check_element(:create_issue_checkbox) + end + + def select_issue_template(template) + click_element(:incident_templates_dropdown) + within_element :incident_templates_dropdown do + find_element(:incident_templates_item, text: template).click + end + end + + def save_incident_settings + click_element :save_changes_button + end + + def has_template?(template) + within_element :incident_templates_dropdown do + has_text?(template) + end + end + end + end + end + end +end |