summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/monitor/alerts/index.rb
blob: aa4d780b5a2f149600db8addb27bf8b7a4bf07b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module QA
  module Page
    module Project
      module Monitor
        module Alerts
          class Index < Page::Base
            view 'app/assets/javascripts/alert_management/components/alert_management_table.vue' do
              element :alert_table_container, required: true
            end

            def has_alert_with_title?(title)
              has_link?(title, wait: 5)
            end

            def go_to_alert(title)
              click_link_with_text(title)
            end
          end
        end
      end
    end
  end
end