# Project push sometimes takes a while to complete
# Making sure new branch is pushed successfully prior to interacting
Support::Retrier.retry_until(max_duration: 15,sleep_interval: 3,reload_page: false,message: 'Ensuring project has branch')do
project.has_branch?(random_test_string)
end
end
afterdo
project.remove_via_api!
Page::Main::Menu.perform(&:sign_out)
end
it'can switch branches and target branch field updates accordingly',testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1891'do