blob: b7b81040ba72afd5d7a4188363a3dbdca2d527e1 (
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
27
28
29
30
31
32
33
34
35
36
37
38
|
# frozen_string_literal: true
module QA
module Page
module Component
module Members
module RemoveMemberModal
extend QA::Page::PageConcern
def self.included(base)
super
base.view 'app/assets/javascripts/members/components/modals/remove_member_modal.vue' do
element :remove_member_modal
element :remove_member_button
end
end
def confirm_remove_member
within_element(:remove_member_modal) do
wait_for_enabled_remove_member_button
click_element :remove_member_button
end
end
private
def wait_for_enabled_remove_member_button
retry_until(sleep_interval: 1, message: 'Waiting for remove member button to be enabled') do
has_element?(:remove_member_button, disabled: false, wait: 3)
end
end
end
end
end
end
end
|