summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/monitor/alerts/show.rb
blob: 1f3c52d89886f0ac27b38df9190d64ba99eaa7cb (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 Show < Page::Base
            view 'app/assets/javascripts/vue_shared/alert_details/components/system_notes/system_note.vue' do
              element :alert_system_note_container
            end

            def go_to_activity_feed_tab
              click_link_with_text('Activity feed')
            end

            def has_system_note?(text)
              has_element?(:alert_system_note_container, text: text)
            end
          end
        end
      end
    end
  end
end