diff options
Diffstat (limited to 'qa/qa/page/project/settings/advanced.rb')
-rw-r--r-- | qa/qa/page/project/settings/advanced.rb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/qa/qa/page/project/settings/advanced.rb b/qa/qa/page/project/settings/advanced.rb index d6e004e827e..960d6c221b5 100644 --- a/qa/qa/page/project/settings/advanced.rb +++ b/qa/qa/page/project/settings/advanced.rb @@ -17,6 +17,7 @@ module QA view 'app/views/projects/settings/_archive.html.haml' do element :archive_project_link element :unarchive_project_link + element :archive_project_content end view 'app/views/projects/_export.html.haml' do @@ -42,13 +43,19 @@ module QA end def transfer_project!(project_name, namespace) - expand_select_list - # Workaround for a failure to search when there are no spaces around the / - # https://gitlab.com/gitlab-org/gitlab/-/issues/218965 - select_transfer_option(namespace.gsub(/([^\s])\/([^\s])/, '\1 / \2')) + # Retry added here due to seldom seen inconsistent UI state issue: + # https://gitlab.com/gitlab-org/gitlab/-/issues/231242 + retry_on_exception do + click_element_coordinates(:archive_project_content) + expand_select_list + # Workaround for a failure to search when there are no spaces around the / + # https://gitlab.com/gitlab-org/gitlab/-/issues/218965 + select_transfer_option(namespace.gsub(/([^\s])\/([^\s])/, '\1 / \2')) + end + click_element(:transfer_button) fill_confirmation_text(project_name) - click_confirm_button + confirm_transfer end def click_export_project_link |