From b5a3488ce11c251a112400b93de3127efa71d6d8 Mon Sep 17 00:00:00 2001 From: Tomas D'Stefano Date: Fri, 11 Oct 2024 10:54:35 +0100 Subject: [PATCH] Make sure sample factory creates a completed application with degrees --- app/services/sample_applications_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/sample_applications_factory.rb b/app/services/sample_applications_factory.rb index fa243e02876..846a644ce30 100644 --- a/app/services/sample_applications_factory.rb +++ b/app/services/sample_applications_factory.rb @@ -24,7 +24,7 @@ def create_application(states:, courses_to_apply_to:, recruitment_cycle_year: Cy form_options[:references_completed] = true if states.include?(:unsubmitted_with_completed_references) form_options[:submitted_at] = nil if states.uniq.difference(%i[unsubmitted unsubmitted_with_completed_references]).blank? - form = Satisfactory.root.add(:application_form, **form_options).which_is(:completed) + form = Satisfactory.root.add(:application_form, **form_options).which_is(:completed).which_is(:with_bachelor_degree) form = form.which_is(:apply_again) if apply_again form = form.which_is(:carry_over) if carry_over