Commit 45ab9d9b authored by David Fernandez's avatar David Fernandez

Merge branch 'experiment/pipeline-editor-walkthrough-tracking' into 'master'

Experiment: Pipeline Editor Walkthrough tracking

See merge request gitlab-org/gitlab!74063
parents 747a7b6f ecb4e970
......@@ -19,8 +19,9 @@ class Projects::Ci::PipelineEditorController < Projects::ApplicationController
end
def setup_walkthrough_experiment
experiment(:pipeline_editor_walkthrough, actor: current_user) do |e|
experiment(:pipeline_editor_walkthrough, namespace: @project.namespace, sticky_to: current_user) do |e|
e.candidate {}
e.record!
end
end
end
......@@ -42,13 +42,10 @@ RSpec.describe Projects::Ci::PipelineEditorController do
project.add_developer(user)
end
it 'tracks the assignment', :experiment do
expect(experiment(:pipeline_editor_walkthrough))
.to track(:assignment)
.with_context(actor: user)
.on_next_instance
subject(:action) { show_request }
show_request
it_behaves_like 'tracks assignment and records the subject', :pipeline_editor_walkthrough, :namespace do
subject { project.namespace }
end
end
end
......
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