Skip to content

Commit

Permalink
Remove email consent letters page
Browse files Browse the repository at this point in the history
We don't need this page anymore as the consent letters are going to be
part of the admin journey.
  • Loading branch information
thomasleese committed Dec 22, 2023
1 parent 1f0b71c commit 846f91a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def update_qualification_requests

if @form.save
redirect_to [
:email_consent_letters,
:professional_standing,
:assessor_interface,
application_form,
assessment,
Expand All @@ -117,13 +117,6 @@ def update_qualification_requests
end
end

def email_consent_letters
authorize %i[assessor_interface assessment_recommendation], :edit?

@qualifications =
application_form.qualifications.where(id: session[:qualification_ids])
end

def edit_professional_standing
authorize %i[assessor_interface assessment_recommendation], :edit?

Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions config/locales/assessor_interface.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ en:
heading: Request work history references
edit_professional_standing:
heading: Do you want to verify LoPS?
email_consent_letters:
heading: Email consent letters
preview_referee:
heading: Check and send the reference request email
preview_teacher:
Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@
post "qualification-requests",
to:
"assessment_recommendation_verify#update_qualification_requests"
get "email-consent-letters",
to: "assessment_recommendation_verify#email_consent_letters"
get "reference-requests",
to: "assessment_recommendation_verify#edit_reference_requests"
post "reference-requests",
Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions spec/support/page_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,6 @@ def assessor_edit_work_history_page
PageObjects::AssessorInterface::EditWorkHistory.new
end

def assessor_email_consent_letters_requests_assessment_recommendation_verify_page
@assessor_email_consent_letters_requests_assessment_recommendation_verify_page ||=
PageObjects::AssessorInterface::EmailConsentLettersAssessmentRecommendationVerify.new
end

def assessor_further_information_request_page
@assessor_further_information_request_page ||=
PageObjects::AssessorInterface::FurtherInformationRequest.new
Expand Down
11 changes: 0 additions & 11 deletions spec/system/assessor_interface/completing_assessment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@
)

when_i_select_the_qualifications
then_i_see_the(
:assessor_email_consent_letters_requests_assessment_recommendation_verify_page,
reference:,
assessment_id:,
)

when_i_click_continue_from_email_consent_letters
then_i_see_the(
:assessor_professional_standing_assessment_recommendation_verify_page,
reference:,
Expand Down Expand Up @@ -345,10 +338,6 @@ def when_i_select_the_qualifications
.click
end

def when_i_click_continue_from_email_consent_letters
assessor_email_consent_letters_requests_assessment_recommendation_verify_page.continue_button.click
end

def when_i_select_yes_verify_professional_standing
assessor_professional_standing_assessment_recommendation_verify_page
.form
Expand Down

0 comments on commit 846f91a

Please sign in to comment.