Commit 3ec0fd33 authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'tomi/test/fork_fix' into 'master'

Fixing the Fork creation over API on Canary & co

See merge request gitlab-org/gitlab!72184
parents 86168e37 e6e5cbf7
......@@ -61,6 +61,9 @@ module QA
def fabricate_via_api!
populate(:upstream, :user)
# Remove after Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/343396
Flow::Login.sign_in(as: user) if Specs::Helpers::ContextSelector.dot_com?
@api_client = Runtime::API::Client.new(:gitlab, is_new_session: false, user: user)
Runtime::Logger.debug("Forking project #{upstream.name} to namespace #{user.username}...")
......@@ -68,6 +71,9 @@ module QA
wait_until_forked
populate(:project)
# Remove after Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/343396
Flow::Login.sign_in if Specs::Helpers::ContextSelector.dot_com?
end
def remove_via_api!
......
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