Commit ecf59e39 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-fix-transfer-project-spec' into 'master'

Stablize transfer project spec by waiting for confirm button enabled

Closes #218302

See merge request gitlab-org/gitlab!39324
parents 80c553d2 0701398a
...@@ -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
......
...@@ -54,7 +54,7 @@ module QA ...@@ -54,7 +54,7 @@ module QA
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