Wait for confirm button enabled

parent 3da460b8
...@@ -20,7 +20,14 @@ module QA ...@@ -20,7 +20,14 @@ module QA
fill_element :confirm_input, text fill_element :confirm_input, text
end 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 click_element :confirm_button
end end
end end
......
...@@ -48,7 +48,7 @@ module QA ...@@ -48,7 +48,7 @@ module QA
select_transfer_option(namespace.gsub(/([^\s])\/([^\s])/, '\1 / \2')) select_transfer_option(namespace.gsub(/([^\s])\/([^\s])/, '\1 / \2'))
click_element(:transfer_button) click_element(:transfer_button)
fill_confirmation_text(project_name) fill_confirmation_text(project_name)
click_confirm_button confirm_transfer
end end
def click_export_project_link 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