@@ -20,8 +20,8 @@ def given_an_hpv_programme_is_underway_with_a_backfilled_session
20
20
@programme = create ( :programme , :hpv )
21
21
@organisation =
22
22
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 )
25
25
@session =
26
26
create (
27
27
:session ,
@@ -36,7 +36,8 @@ def given_an_hpv_programme_is_starting_soon
36
36
@programme = create ( :programme , :hpv )
37
37
@organisation =
38
38
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 )
40
41
@session =
41
42
create (
42
43
:session ,
@@ -112,5 +113,8 @@ def when_i_wait_a_long_time_before_submitting
112
113
113
114
def then_i_see_that_consent_is_closed
114
115
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
+ )
115
119
end
116
120
end
0 commit comments