Commit 352fe162 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'qa-fix-nightly-42' into 'master'

[QA] Fix the 'Commit data' QA test

Closes gitlab-org/quality/nightly#42

See merge request gitlab-org/gitlab-ce!23800
parents 47789026 98e6bd21
......@@ -26,6 +26,11 @@ module QA
def repository_ssh_uri
@repository_ssh_uri ||= project.repository_ssh_location.uri
end
def fabricate!
super
project.visit!
end
end
end
end
......
......@@ -30,6 +30,11 @@ module QA
end
end
end
def fabricate!
super
wiki.visit!
end
end
end
end
......
......@@ -7,17 +7,17 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
@project = Resource::Repository::ProjectPush.fabricate! do |push|
project_push = Resource::Repository::ProjectPush.fabricate! do |push|
push.file_name = 'README.md'
push.file_content = '# This is a test project'
push.commit_message = 'Add README.md'
end
@project = project_push.project
# first file added has no parent commit, thus no diff data
# add second file to repo to enable diff from initial commit
@commit_message = 'Add second file'
@project.visit!
Page::Project::Show.perform(&:create_new_file!)
Page::File::Form.perform do |f|
f.add_name('second')
......
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