Commit 7efd202f authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'make-use-of-login-flow-on-configure-test' into 'master'

Make use of login flow on configure test

See merge request gitlab-org/gitlab!20471
parents 640e6316 dcf81281
...@@ -4,11 +4,6 @@ require 'pathname' ...@@ -4,11 +4,6 @@ require 'pathname'
module QA module QA
context 'Configure' do context 'Configure' do
def login
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
end
def disable_optional_jobs(project) def disable_optional_jobs(project)
# Disable code_quality check in Auto DevOps pipeline as it takes # Disable code_quality check in Auto DevOps pipeline as it takes
# too long and times out the test # too long and times out the test
...@@ -66,7 +61,7 @@ module QA ...@@ -66,7 +61,7 @@ module QA
end end
it 'runs auto devops' do it 'runs auto devops' do
login Flow::Login.sign_in
@project = Resource::Project.fabricate! do |p| @project = Resource::Project.fabricate! do |p|
p.name = Runtime::Env.auto_devops_project_name || 'project-with-autodevops' p.name = Runtime::Env.auto_devops_project_name || 'project-with-autodevops'
...@@ -148,7 +143,7 @@ module QA ...@@ -148,7 +143,7 @@ module QA
describe 'Auto DevOps', :smoke do describe 'Auto DevOps', :smoke do
before do before do
login Flow::Login.sign_in
@project = Resource::Project.fabricate_via_browser_ui! do |p| @project = Resource::Project.fabricate_via_browser_ui! do |p|
p.name = "project-with-autodevops-#{SecureRandom.hex(8)}" p.name = "project-with-autodevops-#{SecureRandom.hex(8)}"
......
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