From 288e709cb729124b81344912db0a0f8ce9735a7d Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 30 Aug 2019 21:51:30 +0000 Subject: Creates Feature Flag for job log Updates frontend code and specs to allow for the new feature flag --- spec/features/projects/jobs/user_browses_job_spec.rb | 2 ++ spec/features/projects/jobs_spec.rb | 1 + 2 files changed, 3 insertions(+) (limited to 'spec/features/projects') diff --git a/spec/features/projects/jobs/user_browses_job_spec.rb b/spec/features/projects/jobs/user_browses_job_spec.rb index 1b277e17b0c..4d8a4812123 100644 --- a/spec/features/projects/jobs/user_browses_job_spec.rb +++ b/spec/features/projects/jobs/user_browses_job_spec.rb @@ -10,6 +10,8 @@ describe 'User browses a job', :js do let!(:build) { create(:ci_build, :success, :trace_artifact, :coverage, pipeline: pipeline) } before do + stub_feature_flags(job_log_json: false) + project.add_maintainer(user) project.enable_ci diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index eb52df2ff79..d1783de0330 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -20,6 +20,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do before do project.add_role(user, user_access_level) sign_in(user) + stub_feature_flags(job_log_json: false) end describe "GET /:project/jobs" do -- cgit v1.2.1