Wait for confirm button enabled

parent 3da460b8
......@@ -20,7 +20,14 @@ module QA
fill_element :confirm_input, text
end
def click_confirm_button
def wait_for_confirm_button_enabled
wait_until(reload: false) do
!find_element(:confirm_button).disabled?
end
end
def confirm_transfer
wait_for_confirm_button_enabled
click_element :confirm_button
end
end
......
......@@ -48,7 +48,7 @@ module QA
select_transfer_option(namespace.gsub(/([^\s])\/([^\s])/, '\1 / \2'))
click_element(:transfer_button)
fill_confirmation_text(project_name)
click_confirm_button
confirm_transfer
end
def click_export_project_link
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment