Skip to content

Commit

Permalink
Make sure sample factory creates a completed application with degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Oct 11, 2024
1 parent 29850b3 commit b5a3488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/sample_applications_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b5a3488

Please sign in to comment.