Skip to content

Commit 08d49e1

Browse files
committed
Fix school session filtering
This fixes an issue introduced in e9326db after renaming the location type. Jira-Issue: MAV-6051
1 parent 63a9311 commit 08d49e1

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

app/components/app_session_search_form_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def initialize(form, url:, programmes:, academic_years:)
1313
STATUSES = %w[in_progress unscheduled scheduled completed].freeze
1414

1515
TYPES = {
16-
"school" => "School session",
16+
"gias_school" => "School session",
1717
"generic_clinic" => "Community clinic"
1818
}.freeze
1919

spec/features/sessions_clinic_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def when_i_go_to_todays_sessions_as_a_nurse
6060

6161
click_link "Sessions", match: :first
6262

63+
choose "Community clinic"
6364
choose "In progress"
65+
6466
click_on "Update results"
6567
end
6668

spec/features/sessions_school_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def when_i_go_to_todays_sessions_as_a_nurse
180180

181181
click_link "Sessions", match: :first
182182

183+
choose "School session"
183184
choose "In progress"
185+
184186
click_on "Update results"
185187
end
186188

0 commit comments

Comments
 (0)