|
6 | 6 | type: :system do
|
7 | 7 | around do |example|
|
8 | 8 | FeatureFlags::FeatureFlag.activate(:prioritisation)
|
| 9 | + FeatureFlags::FeatureFlag.activate(:email_domains_for_referees) |
9 | 10 |
|
10 | 11 | given_countries_exist
|
11 | 12 | example.run
|
12 | 13 |
|
13 | 14 | FeatureFlags::FeatureFlag.deactivate(:prioritisation)
|
| 15 | + FeatureFlags::FeatureFlag.deactivate(:email_domains_for_referees) |
14 | 16 | end
|
15 | 17 |
|
16 | 18 | it "happy path" do
|
|
30 | 32 | then_i_see_the(:eligibility_work_experience_page)
|
31 | 33 |
|
32 | 34 | when_i_have_more_than_20_months_work_experience
|
| 35 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 36 | + |
| 37 | + when_i_have_valid_work_experience_referee |
33 | 38 | then_i_see_the(:eligibility_misconduct_page)
|
34 | 39 |
|
35 | 40 | when_i_dont_have_a_misconduct_record
|
|
66 | 71 | then_i_see_the(:eligibility_work_experience_page)
|
67 | 72 |
|
68 | 73 | when_i_have_under_9_months_work_experience
|
| 74 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 75 | + |
| 76 | + when_i_dont_have_valid_work_experience_referee |
69 | 77 | then_i_see_the(:eligibility_misconduct_page)
|
70 | 78 |
|
71 | 79 | when_i_have_a_misconduct_record
|
|
80 | 88 | and_i_see_the_ineligible_qualification_text_with_eligible_country
|
81 | 89 | and_i_see_the_ineligible_teach_children_text
|
82 | 90 | and_i_see_the_ineligible_work_experience_text
|
| 91 | + and_i_see_the_ineligible_work_experience_referee_text |
83 | 92 | and_i_see_the_ineligible_misconduct_text
|
84 | 93 | end
|
85 | 94 |
|
|
114 | 123 | when_i_have_a_degree
|
115 | 124 | then_i_see_the(:eligibility_work_experience_page)
|
116 | 125 |
|
117 |
| - when_i_visit_the(:eligibility_misconduct_page) |
| 126 | + when_i_visit_the(:eligibility_work_experience_referee_page) |
118 | 127 | then_i_see_the(:eligibility_work_experience_page)
|
119 | 128 |
|
120 | 129 | when_i_have_more_than_20_months_work_experience
|
| 130 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 131 | + |
| 132 | + when_i_visit_the(:eligibility_misconduct_page) |
| 133 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 134 | + |
| 135 | + when_i_have_valid_work_experience_referee |
121 | 136 | then_i_see_the(:eligibility_misconduct_page)
|
122 | 137 |
|
123 | 138 | when_i_visit_the(:eligibility_work_experience_in_england_page)
|
|
139 | 154 | then_i_see_the(:eligibility_eligible_page)
|
140 | 155 | end
|
141 | 156 |
|
| 157 | + it "happy path when selecting country with reduced evidence required" do |
| 158 | + when_i_visit_the(:eligibility_start_page) |
| 159 | + then_i_see_the(:eligibility_start_page) |
| 160 | + |
| 161 | + when_i_press_start_now |
| 162 | + then_i_see_the(:eligibility_country_page) |
| 163 | + |
| 164 | + when_i_select_a_reduced_evidence_required_country |
| 165 | + then_i_see_the(:eligibility_qualification_page) |
| 166 | + |
| 167 | + when_i_have_a_qualification |
| 168 | + then_i_see_the(:eligibility_degree_page) |
| 169 | + |
| 170 | + when_i_have_a_degree |
| 171 | + then_i_see_the(:eligibility_work_experience_page) |
| 172 | + |
| 173 | + when_i_have_more_than_20_months_work_experience |
| 174 | + then_i_see_the(:eligibility_misconduct_page) |
| 175 | + |
| 176 | + when_i_dont_have_a_misconduct_record |
| 177 | + then_i_see_the(:eligibility_work_experience_in_england_page) |
| 178 | + |
| 179 | + when_i_have_work_experience_in_england |
| 180 | + then_i_see_the(:eligibility_teach_children_page) |
| 181 | + |
| 182 | + when_i_can_teach_children |
| 183 | + then_i_see_the(:eligibility_eligible_page) |
| 184 | + |
| 185 | + when_i_visit_the(:eligibility_start_page) |
| 186 | + then_i_see_the(:eligibility_start_page) |
| 187 | + when_i_press_start_now |
| 188 | + then_i_have_two_eligibility_checks |
| 189 | + end |
| 190 | + |
142 | 191 | it "happy path when filtering by country requiring qualification for subject without England work" do
|
143 | 192 | when_i_visit_the(:eligibility_start_page)
|
144 | 193 | then_i_see_the(:eligibility_start_page)
|
|
156 | 205 | then_i_see_the(:eligibility_work_experience_page)
|
157 | 206 |
|
158 | 207 | when_i_have_more_than_20_months_work_experience
|
| 208 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 209 | + |
| 210 | + when_i_have_valid_work_experience_referee |
159 | 211 | then_i_see_the(:eligibility_misconduct_page)
|
160 | 212 |
|
161 | 213 | when_i_dont_have_a_misconduct_record
|
|
188 | 240 | then_i_see_the(:eligibility_work_experience_page)
|
189 | 241 |
|
190 | 242 | when_i_have_more_than_20_months_work_experience
|
| 243 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 244 | + |
| 245 | + when_i_have_valid_work_experience_referee |
191 | 246 | then_i_see_the(:eligibility_misconduct_page)
|
192 | 247 |
|
193 | 248 | when_i_dont_have_a_misconduct_record
|
|
220 | 275 | then_i_see_the(:eligibility_work_experience_page)
|
221 | 276 |
|
222 | 277 | when_i_have_more_than_20_months_work_experience
|
| 278 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 279 | + |
| 280 | + when_i_have_valid_work_experience_referee |
223 | 281 | then_i_see_the(:eligibility_misconduct_page)
|
224 | 282 |
|
225 | 283 | when_i_dont_have_a_misconduct_record
|
|
252 | 310 | then_i_see_the(:eligibility_work_experience_page)
|
253 | 311 |
|
254 | 312 | when_i_have_more_than_20_months_work_experience
|
| 313 | + then_i_see_the(:eligibility_work_experience_referee_page) |
| 314 | + |
| 315 | + when_i_have_valid_work_experience_referee |
255 | 316 | then_i_see_the(:eligibility_misconduct_page)
|
256 | 317 |
|
257 | 318 | when_i_dont_have_a_misconduct_record
|
|
0 commit comments