@@ -20,8 +20,8 @@ def given_an_hpv_programme_is_underway_with_a_backfilled_session
2020 @programme = create ( :programme , :hpv )
2121 @organisation =
2222 create ( :organisation , :with_one_nurse , programmes : [ @programme ] )
23- location =
24- create ( :school , name : "Pilot School" , organisation : @organisation )
23+ @team = create ( :team , organisation : @organisation )
24+ location = create ( :school , name : "Pilot School" , team : @team )
2525 @session =
2626 create (
2727 :session ,
@@ -36,7 +36,8 @@ def given_an_hpv_programme_is_starting_soon
3636 @programme = create ( :programme , :hpv )
3737 @organisation =
3838 create ( :organisation , :with_one_nurse , programmes : [ @programme ] )
39- location = create ( :school , name : "Pilot School" , team : create ( :team ) )
39+ @team = create ( :team , organisation : @organisation )
40+ location = create ( :school , name : "Pilot School" , team : @team )
4041 @session =
4142 create (
4243 :session ,
@@ -112,5 +113,8 @@ def when_i_wait_a_long_time_before_submitting
112113
113114 def then_i_see_that_consent_is_closed
114115 expect ( page ) . to have_content ( "The deadline for responding has passed" )
116+ expect ( page ) . to have_content (
117+ "Contact #{ @team . email } to book a clinic appointment."
118+ )
115119 end
116120end
0 commit comments