Commit 890066e2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix remaining calls to GitLab QA factories

parent 5c393b39
...@@ -55,8 +55,6 @@ module QA ...@@ -55,8 +55,6 @@ module QA
autoload :Mattermost, 'qa/scenario/test/integration/mattermost' autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
end end
end end
end
end end
## ##
......
...@@ -4,7 +4,7 @@ module QA ...@@ -4,7 +4,7 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
Scenario::Gitlab::Project::Create.perform do |project| Factory::Resource::Project.fabricate!do |project|
project.name = 'awesome-project' project.name = 'awesome-project'
project.description = 'create awesome project test' project.description = 'create awesome project test'
end end
......
...@@ -12,7 +12,7 @@ module QA ...@@ -12,7 +12,7 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
Scenario::Gitlab::Project::Create.perform do |scenario| Factory::Resource::Project.fabricate! do |scenario|
scenario.name = 'project-with-code' scenario.name = 'project-with-code'
scenario.description = 'project for git clone tests' scenario.description = 'project for git clone tests'
end end
......
...@@ -5,12 +5,12 @@ module QA ...@@ -5,12 +5,12 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
Scenario::Gitlab::Project::Create.perform do |scenario| Factory::Resource::Project.fabricate! do |scenario|
scenario.name = 'project_with_code' scenario.name = 'project_with_code'
scenario.description = 'project with repository' scenario.description = 'project with repository'
end end
Scenario::Gitlab::Repository::Push.perform do |scenario| Factory::Repository::Push.fabricate! do |scenario|
scenario.file_name = 'README.md' scenario.file_name = 'README.md'
scenario.file_content = '# This is test project' scenario.file_content = '# This is test project'
scenario.commit_message = 'Add README.md' scenario.commit_message = 'Add README.md'
......
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