Skip to content

Commit

Permalink
Organise page_helpers alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpattinson committed Oct 12, 2023
1 parent 531e2e8 commit 21224f3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<% content_for :page_title, "#{'Error: ' if @work_experience_form.errors.any?}#{t("helpers.legend.eligibility_interface_work_experience_form.work_experience")}" %>
<% content_for :back_link_url, back_link_url(@eligibility_check.qualified_for_subject_required? ? eligibility_interface_qualified_for_subject_path : eligibility_interface_teach_children_path) %>

Expand Down
30 changes: 15 additions & 15 deletions spec/support/page_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ def assessor_assign_assessor_page
PageObjects::AssessorInterface::AssignAssessor.new
end

def assessor_assessment_section_page
@assessor_assessment_section_page ||=
PageObjects::AssessorInterface::AssessmentSection.new
end

def assessor_assign_reviewer_page
@assessor_assign_reviewer_page ||=
PageObjects::AssessorInterface::AssignReviewer.new
end

def assessor_assessment_section_page
@assessor_assessment_section_page ||=
PageObjects::AssessorInterface::AssessmentSection.new
end

def assessor_check_english_language_proficiency_page
@assessor_check_english_language_proficiency_page ||=
PageObjects::AssessorInterface::CheckEnglishLanguageProficiency.new
Expand Down Expand Up @@ -293,6 +293,16 @@ def personas_page
@personas_page ||= PageObjects::Personas.new
end

def support_edit_english_language_provider_page
@support_edit_english_language_provider_page ||=
PageObjects::SupportInterface::EditEnglishLanguageProvider.new
end

def support_english_language_providers_index_page
@support_english_language_providers_index_page ||=
PageObjects::SupportInterface::EnglishLanguageProvidersIndex.new
end

def staff_signed_out_page
@staff_signed_out_page ||= PageObjects::Staff::SignedOut.new
end
Expand Down Expand Up @@ -593,14 +603,4 @@ def teacher_written_statement_page
@teacher_written_statement_page =
PageObjects::TeacherInterface::WrittenStatement.new
end

def support_edit_english_language_provider_page
@support_edit_english_language_provider_page ||=
PageObjects::SupportInterface::EditEnglishLanguageProvider.new
end

def support_english_language_providers_index_page
@support_english_language_providers_index_page ||=
PageObjects::SupportInterface::EnglishLanguageProvidersIndex.new
end
end
8 changes: 6 additions & 2 deletions spec/system/assessor_interface/completing_assessment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
)

when_i_check_declaration
then_i_see_the(:assessor_age_range_subjects_assessment_recommendation_award_page)
then_i_see_the(
:assessor_age_range_subjects_assessment_recommendation_award_page,
)
and_i_see_the_age_range_subjects

when_i_click_change_age_range_minimum
Expand All @@ -52,7 +54,9 @@
)

when_i_click_continue
then_i_see_the(:assessor_age_range_subjects_assessment_recommendation_award_page)
then_i_see_the(
:assessor_age_range_subjects_assessment_recommendation_award_page,
)
and_i_continue_from_age_range_subjects

then_i_see_the(
Expand Down

0 comments on commit 21224f3

Please sign in to comment.