E2E test: set default branch for push options spec
What does this MR do and why?
This test failed in staging, as staging has a default branch of master set (via QA_DEFAULT_BRANCH). The test previously passed in an MR as QA_DEFAULT_BRANCH is not set in MRs and main is used by default.
This MR explicitly sets a reference branch (ref: project.default_branch) for a branch to be created from, rather than relying on the default.
Fixes https://gitlab.com/gitlab-org/gitlab/-/issues/525001
I've created a follow up to remove the usage of QA_DEFAULT_BRANCH in the e2e tests gitlab-org/quality/quality-engineering/team-tasks#3485 (closed)
Note: this test is currently fast quarantined as it is failing and since it is a smoke test it blocks deployments.
How to set up and validate locally
QA_DEFAULT_BRANCH=master GITLAB_QA_ADMIN_ACCESS_TOKEN=x QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=https://gdk.test:3443 bundle exec rspec qa/specs/features/api/3_create/merge_request/push_options_spec.rb
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.