Commit 72657050 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'ml-revert-changes-to-tests-using-reusable-project' into 'master'

Stop using ReusableProject while investigating errors

See merge request gitlab-org/gitlab!78623
parents b8a28226 37fefced
......@@ -9,7 +9,9 @@ module QA
attribute :id
attribute :project do
Project.fabricate!
Project.fabricate! do |project|
project.initialize_with_readme = true
end
end
attribute :token do
Page::Project::Settings::AccessTokens.perform(&:created_access_token)
......
......@@ -4,9 +4,7 @@ module QA
RSpec.describe 'Manage' do
describe 'Project access token' do
before(:all) do
@project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api! do |pat|
pat.project = Resource::ReusableProject.fabricate_via_api!
end
@project_access_token = QA::Resource::ProjectAccessToken.fabricate_via_api!
@user_api_client = Runtime::API::Client.new(:gitlab, personal_access_token: @project_access_token.token)
end
......
......@@ -11,7 +11,12 @@ module QA
let(:title) { "MR push options test #{SecureRandom.hex(8)}" }
let(:commit_message) { 'Add README.md' }
let(:project) { Resource::ReusableProject.fabricate_via_api! }
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'merge-request-push-options'
project.initialize_with_readme = true
end
end
def create_new_mr_via_push
Resource::Repository::ProjectPush.fabricate! do |push|
......
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