Fix tests [SCI-11707]

This commit is contained in:
Andrej 2025-03-31 09:02:34 +02:00
parent 1c8edec966
commit 343471d031
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@ describe StepElements::FormResponsesController, type: :controller do
let!(:form) { create(:form, team: team, created_by: user) }
let!(:step) { create(:step, protocol: protocol) }
let!(:protocol) { create(:protocol, added_by: user) }
let!(:form_response) { create(:form_response, form: form, created_by: user) }
let!(:form_response) { create(:form_response, form: form, created_by: user, parent: step) }
let!(:step_orderable_element) { create(:step_orderable_element, orderable: form_response) }
before do

View file

@ -5,6 +5,7 @@ FactoryBot.define do
association :form
association :created_by, factory: :user
association :step_orderable_element, factory: :step_orderable_element
association :parent, factory: :step
status { :pending }