blob: 1b30e48472341bcd4e4faa053ddb6bda3ad3fbd3 (
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
26
|
# frozen_string_literal: true
module QA
module Page
module Project
module Monitor
module Incidents
class Index < Page::Base
view 'app/assets/javascripts/incidents/components/incidents_list.vue' do
element :create_incident_button
element :incident_link
end
def create_incident
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) }
end
end
end
end
end
end
end
|