blob: 355e2783fb76b50710b60b8a29bcfd8906803f42 (
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 Component
module ConfirmModal
def self.included(base)
base.view 'app/views/shared/_confirm_modal.html.haml' do
element :confirm_modal
element :confirm_input
element :confirm_button
end
end
def fill_confirmation_text(text)
fill_element :confirm_input, text
end
def click_confirm_button
click_element :confirm_button
end
end
end
end
end
|